Changeset 23

Show
Ignore:
Timestamp:
09/17/07 07:09:57 (1 year ago)
Author:
devja..@anarkystic.com
Message:

yowza

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fizzjik/fizzjik/controller/network.py

    r22 r23  
    44from fizzjik.process import ProcessService, ProcessProtocol 
    55from fizzjik.input.network import NetworkConnectionNotPresentEvent, \ 
    6         NetworkConnectionRemovedEvent 
     6        NetworkConnectionPresentEvent, NetworkConnectionRemovedEvent 
    77 
    88class DHClientProcessProtocol(ProcessProtocol): 
     
    2020    enabled = True 
    2121    platform = "posix" 
     22    protocol = DHClientProcessProtocol 
    2223 
    2324    def registerObservers(self, hub): 
    2425        hub.addObserver(NetworkConnectionNotPresentEvent, self._retry) 
     26        hub.addObserver(NetworkConnectionPresentEvent, self._retry) 
    2527        hub.addObserver(NetworkConnectionRemovedEvent, self._dhcplease) 
    2628 
  • fizzjik/fizzjik/output/lpr.py

    r20 r23  
    1818    enabled = True 
    1919    platform = "posix" 
     20    protocol = LPRProcessProtocol 
    2021 
    2122    def print_(self, f, *args): 
    2223        if self.reallyPrint: 
    23             self.protocol.print_(f, *args) 
     24            self.process.print_(f, *args) 
    2425        else: 
    2526            print "would be printing:",  
  • fizzjik/fizzjik/process.py

    r22 r23  
    5656    enabled = True 
    5757    platform = "posix" 
     58    protocol = ProcessProtocol 
     59 
    5860 
    5961    @if_config('enabled') 
    6062    def startService(self): 
    61         self.protocol = ProcessProtocol(self.platform) 
     63        self.process = self.protocol(self.platform) 
    6264        pass 
    6365     
    6466    @if_config('enabled') 
    6567    def stopService(self): 
    66         self.protocol.kill() 
     68        self.process.kill() 
    6769        pass 
    6870     
    6971    def spawn(self, *args): 
    70         self.protocol.spawn(*args) 
     72        self.process.spawn(*args) 
    7173 
  • fizzjik/test.cfg

    r22 r23  
    2727 
    2828[DHClientController] 
    29 platform = darwin 
     29platform = posix 
    3030 
    3131[MPlayerService]