Changeset 861
- Timestamp:
- 12/06/05 09:10:11
- Files:
-
- trunk/cherrypy/_cputil.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cputil.py
r860 r861 55 55 return objectTrail 56 56 57 def get_special_attribute(name, alternate_name = None):57 def get_special_attribute(name, old_name = None): 58 58 """Return the special attribute. A special attribute is one that 59 59 applies to all of the children from where it is defined, such as … … 72 72 73 73 try: 74 return globals()[name] 74 if old_name: 75 return globals()[old_name] 76 else: 77 return globals()[name] 75 78 except KeyError: 76 if alternate_name:77 return get_special_attribute( alternate_name)79 if old_name: 80 return get_special_attribute(name) 78 81 msg = "Special attribute %s could not be found" % repr(name) 79 82 raise cherrypy.HTTPError(500, msg)

