Exemplo n.º 1
0
 def __init__(self, url, parsexml):
     VermontInstance.__init__(self, parsexml)
     self.url = url
     self.online = False
     self._conn = xmlrpclib.ServerProxy(url, None, None, 0, 1)
     self.host = re.match("http://(.*)[:/$]", url).group(1)
     self.retrieveStatus()
     if self.online:
         self.retrieveConfig()
Exemplo n.º 2
0
    def __init__(self, directory, cfgfile, logfile, parsexml):
        VermontInstance.__init__(self, parsexml)
        self.dir = directory
        self.cfgfile = cfgfile

        self.dyncfgfile = "%s.dynconf" % (cfgfile)
        self.logfile = "%s/%s" % (directory, logfile)
        self.pid = 0

        self.retrieveConfig()
        self.syncConfig()
    def __init__(self, directory, cfgfile, logfile, parsexml):
        VermontInstance.__init__(self, parsexml)
        self.dir = directory
        self.cfgfile = cfgfile
        
        self.dyncfgfile = "%s.dynconf" % (cfgfile)
        self.logfile = "%s/%s" % (directory, logfile)
        self.pid = 0

        self.retrieveConfig()
        self.syncConfig()