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

Changeset 1425

Show
Ignore:
Timestamp:
11/04/06 14:34:35
Author:
fumanchu
Message:

Removed failsafe attr get from Tool (which merely duplicated the one inside Hook).

Files:

Legend:

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

    r1423 r1425  
    9595        method when the tool is "turned on" in config. 
    9696        """ 
    97         f = getattr(self.callable, "failsafe", False) 
    9897        p = getattr(self.callable, "priority", self._priority) 
    99         cherrypy.request.hooks.attach(self._point, self.callable, failsafe=f, 
     98        cherrypy.request.hooks.attach(self._point, self.callable, 
    10099                                      priority=p, **self._merged_args()) 
    101100 
     
    137136        method when the tool is "turned on" in config. 
    138137        """ 
    139         f = getattr(self.callable, "failsafe", False) 
    140138        p = getattr(self.callable, "priority", self._priority) 
    141         cherrypy.request.hooks.attach(self._point, self._wrapper, failsafe=f, 
     139        cherrypy.request.hooks.attach(self._point, self._wrapper, 
    142140                                      priority=p, **self._merged_args()) 
    143141 

Hosted by WebFaction

Log in as guest/cpguest to create tickets