Package PyFoam :: Package Applications :: Module CommonServer
[hide private]
[frames] | no frames]

Source Code for Module PyFoam.Applications.CommonServer

 1  """ 
 2  Class that implements the common functionality for having a server 
 3  """ 
 4   
5 -class CommonServer(object):
6 """ The class that switches on and off the server 7 """ 8
9 - def addOptions(self,haveServer=True):
10 self.ensureGeneralOptions() 11 if haveServer: 12 self.generalOpts.add_option("--no-server-process", 13 action="store_false", 14 default=True, 15 dest="server", 16 help="Do not start a server process that can control the process") 17 else: 18 self.generalOpts.add_option("--start-server-process", 19 action="store_true", 20 default=True, 21 dest="server", 22 help="Start a server process that can control the process")
23