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

Changeset 1833

Show
Ignore:
Timestamp:
11/20/07 14:13:18
Author:
fumanchu
Message:

Added SimplePlugin.__init__.

Files:

Legend:

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

    r1828 r1833  
    1515class SimplePlugin(object): 
    1616    """Plugin base class which auto-subscribes methods for known channels.""" 
     17     
     18    def __init__(self, bus): 
     19        self.bus = bus 
    1720     
    1821    def subscribe(self): 
     
    107110     
    108111    def __init__(self, bus): 
    109         self.bus = bus 
     112        SimplePlugin.__init__(self, bus) 
    110113        self.finalized = False 
    111114     
     
    199202    def __init__(self, bus, stdin='/dev/null', stdout='/dev/null', 
    200203                 stderr='/dev/null'): 
    201         self.bus = bus 
     204        SimplePlugin.__init__(self, bus) 
    202205        self.stdin = stdin 
    203206        self.stdout = stdout 
     
    277280     
    278281    def __init__(self, bus, pidfile): 
    279         self.bus = bus 
     282        SimplePlugin.__init__(self, bus) 
    280283        self.pidfile = pidfile 
    281284        self.finalized = False 
     
    323326     
    324327    def __init__(self, bus, callback, frequency=60): 
    325         self.bus = bus 
     328        SimplePlugin.__init__(self, bus) 
    326329        self.callback = callback 
    327330        self.frequency = frequency 
     
    435438    def __init__(self, bus): 
    436439        self.threads = {} 
    437         self.bus = bus 
     440        SimplePlugin.__init__(self, bus) 
    438441        self.bus.listeners.setdefault('acquire_thread', set()) 
    439442        self.bus.listeners.setdefault('release_thread', set()) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets