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
def buildOptions(self): self.usage = "%prog [options] file" BasicLoader.buildOptions(self)