Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1277

Show
Ignore:
Timestamp:
08/25/06 16:19:40
Author:
fumanchu
Message:

Wrapper for hook functions now takes the name of the wrapped function.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cprequest.py

    r1275 r1277  
    4545                callback(**kwargs) 
    4646            func = wrapper 
     47            name = getattr(callback, "__name__", None) 
     48            if name: 
     49                func.__name__ = name 
    4750        self.callbacks[point].append(func) 
    4851        if failsafe is None: 

Hosted by WebFaction

Log in as guest/cpguest to create tickets