Changeset 22
- Timestamp:
- 09/17/07 07:01:24 (1 year ago)
- Files:
-
- fizzjik/fizzjik/controller/network.py (added)
- fizzjik/fizzjik/process.py (modified) (3 diffs)
- fizzjik/test.cfg (modified) (1 diff)
- fizzjik/test.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fizzjik/fizzjik/process.py
r20 r22 12 12 posix_args = ['/usr/bin/env'] 13 13 14 running = False 15 14 16 def __init__(self, platform="posix"): 15 17 self.platform = platform … … 19 21 20 22 def spawn(self, *args): 23 if not self.getExec(): 24 return 21 25 self.running = True 22 26 reactor.spawnProcess(self, self.getExec(), args=self.getArgs()+list(args), env=os.environ) … … 38 42 39 43 def getExec(self): 40 return getattr(self, '%s_exec'%(self.platform) )44 return getattr(self, '%s_exec'%(self.platform), None) 41 45 42 46 def getArgs(self): 43 return getattr(self, '%s_args'%(self.platform) )47 return getattr(self, '%s_args'%(self.platform), None) 44 48 45 49 def print_(self, f): fizzjik/test.cfg
r20 r22 26 26 delay = 10 27 27 28 [DHClientController] 29 platform = darwin 30 28 31 [MPlayerService] 29 32 enabled = False fizzjik/test.py
r21 r22 23 23 #from fizzjik.output.growl import GrowlService 24 24 25 from fizzjik.controller.network import DHClientController 26 25 27 application = service.Application('easyident') 26 28 … … 42 44 echo.setServiceParent(hub) 43 45 46 dhclient = DHClientController() 47 dhclient.setServiceParent(hub) 48 44 49 #growler = GrowlService() 45 50 #growler.setServiceParent(hub)
