def buildOptions(self): """basic options setup sub classes can add more options here""" ZenDaemon.buildOptions(self) self.parser.add_option('--host', dest="host",default="localhost", help="hostname of zeo server") self.parser.add_option('--port', dest="port",type="int", default=8100, help="port of zeo server")
def __init__(self, noopts=0, app=None, keeproot=False): ZenDaemon.__init__(self, noopts, keeproot) self.dataroot = None self.app = app self.db = None if not app: self.zodbConnect() self.poollock = Lock() self.getDataRoot() self.login() setDescriptors(self.dmd)
def buildOptions(self): """basic options setup sub classes can add more options here""" ZenDaemon.buildOptions(self) self.parser.add_option('--host', dest="host", default="localhost", help="hostname of zeo server") self.parser.add_option('--port', dest="port", type="int", default=8100, help="port of zeo server")
def buildOptions(self): """basic options setup sub classes can add more options here""" ZenDaemon.buildOptions(self) connectionFactory = getUtility(IZodbFactoryLookup).get() connectionFactory.buildOptions(self.parser)
def __init__(self, noopts=0, app=None, keeproot=False): ZenDaemon.__init__(self, noopts, keeproot) unused(app) self.opendb() self.openconn = self.getPoolSize()