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")
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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")
Esempio n. 5
0
    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()
Esempio n. 7
0
    def buildOptions(self):
        """basic options setup sub classes can add more options here"""
        ZenDaemon.buildOptions(self)

        connectionFactory = getUtility(IZodbFactoryLookup).get()
        connectionFactory.buildOptions(self.parser)
Esempio n. 8
0
 def __init__(self, noopts=0, app=None, keeproot=False):
     ZenDaemon.__init__(self, noopts, keeproot)
     unused(app)
     self.opendb()
     self.openconn = self.getPoolSize()