Changeset 1833
- Timestamp:
- 11/20/07 14:13:18
- Files:
-
- trunk/cherrypy/restsrv/plugins.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/restsrv/plugins.py
r1828 r1833 15 15 class SimplePlugin(object): 16 16 """Plugin base class which auto-subscribes methods for known channels.""" 17 18 def __init__(self, bus): 19 self.bus = bus 17 20 18 21 def subscribe(self): … … 107 110 108 111 def __init__(self, bus): 109 self.bus = bus112 SimplePlugin.__init__(self, bus) 110 113 self.finalized = False 111 114 … … 199 202 def __init__(self, bus, stdin='/dev/null', stdout='/dev/null', 200 203 stderr='/dev/null'): 201 self.bus = bus204 SimplePlugin.__init__(self, bus) 202 205 self.stdin = stdin 203 206 self.stdout = stdout … … 277 280 278 281 def __init__(self, bus, pidfile): 279 self.bus = bus282 SimplePlugin.__init__(self, bus) 280 283 self.pidfile = pidfile 281 284 self.finalized = False … … 323 326 324 327 def __init__(self, bus, callback, frequency=60): 325 self.bus = bus328 SimplePlugin.__init__(self, bus) 326 329 self.callback = callback 327 330 self.frequency = frequency … … 435 438 def __init__(self, bus): 436 439 self.threads = {} 437 self.bus = bus440 SimplePlugin.__init__(self, bus) 438 441 self.bus.listeners.setdefault('acquire_thread', set()) 439 442 self.bus.listeners.setdefault('release_thread', set())

