Changeset 23
- Timestamp:
- 09/17/07 07:09:57 (1 year ago)
- Files:
-
- fizzjik/fizzjik/controller/network.py (modified) (2 diffs)
- fizzjik/fizzjik/output/lpr.py (modified) (1 diff)
- fizzjik/fizzjik/process.py (modified) (1 diff)
- fizzjik/test.cfg (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fizzjik/fizzjik/controller/network.py
r22 r23 4 4 from fizzjik.process import ProcessService, ProcessProtocol 5 5 from fizzjik.input.network import NetworkConnectionNotPresentEvent, \ 6 NetworkConnection RemovedEvent6 NetworkConnectionPresentEvent, NetworkConnectionRemovedEvent 7 7 8 8 class DHClientProcessProtocol(ProcessProtocol): … … 20 20 enabled = True 21 21 platform = "posix" 22 protocol = DHClientProcessProtocol 22 23 23 24 def registerObservers(self, hub): 24 25 hub.addObserver(NetworkConnectionNotPresentEvent, self._retry) 26 hub.addObserver(NetworkConnectionPresentEvent, self._retry) 25 27 hub.addObserver(NetworkConnectionRemovedEvent, self._dhcplease) 26 28 fizzjik/fizzjik/output/lpr.py
r20 r23 18 18 enabled = True 19 19 platform = "posix" 20 protocol = LPRProcessProtocol 20 21 21 22 def print_(self, f, *args): 22 23 if self.reallyPrint: 23 self.pro tocol.print_(f, *args)24 self.process.print_(f, *args) 24 25 else: 25 26 print "would be printing:", fizzjik/fizzjik/process.py
r22 r23 56 56 enabled = True 57 57 platform = "posix" 58 protocol = ProcessProtocol 59 58 60 59 61 @if_config('enabled') 60 62 def startService(self): 61 self.pro tocol = ProcessProtocol(self.platform)63 self.process = self.protocol(self.platform) 62 64 pass 63 65 64 66 @if_config('enabled') 65 67 def stopService(self): 66 self.pro tocol.kill()68 self.process.kill() 67 69 pass 68 70 69 71 def spawn(self, *args): 70 self.pro tocol.spawn(*args)72 self.process.spawn(*args) 71 73 fizzjik/test.cfg
r22 r23 27 27 28 28 [DHClientController] 29 platform = darwin29 platform = posix 30 30 31 31 [MPlayerService]
