Changeset 1610
- Timestamp:
- 02/05/07 11:12:22
- Files:
-
- trunk/cherrypy/__init__.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/__init__.py
r1608 r1610 325 325 326 326 import sys, types 327 parents = sys._getframe(1).f_locals328 327 if isinstance(func, (types.FunctionType, types.MethodType)): 329 328 # expose is being called directly, before the method has been bound 329 parents = sys._getframe(1).f_locals 330 330 return expose_(func) 331 331 else: … … 336 336 else: 337 337 # expose is returning a decorator "@expose(alias=...)" 338 parents = sys._getframe(1).f_locals 338 339 return expose_ 339 340

