Mercurial > traipse_dev
comparison orpg/tools/decorators.py @ 76:37a11fea3304 ornery-dev
More clean up. Images now posts a Chat Info post if image doesn't load.
author | sirebral |
---|---|
date | Sat, 22 Aug 2009 04:02:14 -0500 |
parents | 8bc955faf819 |
children |
comparison
equal
deleted
inserted
replaced
75:f518bc709fd1 | 76:37a11fea3304 |
---|---|
98 Decorator to print Enter/Exit debugging info | 98 Decorator to print Enter/Exit debugging info |
99 """ | 99 """ |
100 | 100 |
101 @functools.wraps(func) | 101 @functools.wraps(func) |
102 def new_func(*args, **kwargs): | 102 def new_func(*args, **kwargs): |
103 from orpg.tools.orpg_log import logger | 103 from orpg_log import logger |
104 | 104 |
105 if not ORPG_DEBUG & logger.log_level: | 105 if not ORPG_DEBUG & logger.log_level: |
106 return func(*args, **kwargs) | 106 return func(*args, **kwargs) |
107 | 107 |
108 if str(args[0].__class__).startswith('<class'): | 108 if str(args[0].__class__).startswith('<class'): |