Changeset 22

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

added dhclient controller thingee

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fizzjik/fizzjik/process.py

    r20 r22  
    1212    posix_args = ['/usr/bin/env'] 
    1313 
     14    running = False 
     15     
    1416    def __init__(self, platform="posix"): 
    1517        self.platform = platform 
     
    1921 
    2022    def spawn(self, *args): 
     23        if not self.getExec(): 
     24            return 
    2125        self.running = True 
    2226        reactor.spawnProcess(self, self.getExec(), args=self.getArgs()+list(args), env=os.environ) 
     
    3842    
    3943    def getExec(self): 
    40         return getattr(self, '%s_exec'%(self.platform)
     44        return getattr(self, '%s_exec'%(self.platform), None
    4145     
    4246    def getArgs(self): 
    43         return getattr(self, '%s_args'%(self.platform)
     47        return getattr(self, '%s_args'%(self.platform), None
    4448 
    4549    def print_(self, f): 
  • fizzjik/test.cfg

    r20 r22  
    2626delay = 10 
    2727 
     28[DHClientController] 
     29platform = darwin 
     30 
    2831[MPlayerService] 
    2932enabled = False 
  • fizzjik/test.py

    r21 r22  
    2323#from fizzjik.output.growl import GrowlService 
    2424 
     25from fizzjik.controller.network import DHClientController 
     26 
    2527application = service.Application('easyident') 
    2628 
     
    4244echo.setServiceParent(hub) 
    4345 
     46dhclient = DHClientController() 
     47dhclient.setServiceParent(hub) 
     48 
    4449#growler = GrowlService() 
    4550#growler.setServiceParent(hub)