示例#1
0
 def __init__(self):
     '''Handle command line options, get app instance,
     load caches and setup log file'''
     BasicLoader.__init__(self)
     manuf = self.dmd.Manufacturers
     if not hasattr(manuf, 'Cisco'):
         manage_addManufacturer(manuf, 'Cisco')
     self.cisco = manuf._getOb('Cisco')
 def __init__(self, noopts=0, app=None):
     self.filename = os.path.join(os.path.dirname(__file__), 
                         "port-numbers.txt")
     BasicLoader.__init__(self, noopts, app, ignoreComments=False)
     services = self.dmd.getDmdRoot('Services')
     self.privserv = services.createOrganizer("/IpService/Privileged")
     self.regserv = services.createOrganizer("/IpService/Registered")
     self.lastservice = None
示例#3
0
 def __init__(self, noopts=0, app=None):
     self.filename = os.path.join(os.path.dirname(__file__),
                                  "port-numbers.txt")
     BasicLoader.__init__(self, noopts, app, ignoreComments=False)
     services = self.dmd.getDmdRoot('Services')
     self.privserv = services.createOrganizer("/IpService/Privileged")
     self.regserv = services.createOrganizer("/IpService/Registered")
     self.lastservice = None
 def __init__(self):
     '''Handle command line options, get app instance,
     load caches and setup log file'''
     BasicLoader.__init__(self)
     manuf = self.dmd.Manufacturers
     if not hasattr(manuf, 'Cisco'):
         manage_addManufacturer(manuf, 'Cisco')
     self.cisco = manuf._getOb('Cisco')
示例#5
0
 def buildOptions(self):
     self.usage = "%prog [options] file"
     BasicLoader.buildOptions(self)
 def buildOptions(self):
     self.usage = "%prog [options] file"
     BasicLoader.buildOptions(self)