def __init__(self, name, facility): Configurable.__init__(self, name) self.facility = facility self._showHelpOnly = False return
def _init(self): Configurable._init(self) if self.inventory.usage: self.showUsage() self._showHelpOnly = True if self.inventory.showProperties: self.showProperties() self._showHelpOnly = True if self.inventory.showComponents: self.showComponents() self._showHelpOnly = True if self.inventory.showCurator: self.showCurator() self._showHelpOnly = True if not self._showHelpOnly: for component in self.components(): if component._showHelpOnly: self._showHelpOnly = True break return
def __init__(self, name=None, facility=None): Configurable.__init__(self, name) #self.facility = facility # not used self._helpRequested = False return
def __init__(self, name, facility): Configurable.__init__(self, name) self.facility = facility import journal self._info = journal.info(self.name) self._debug = journal.debug(self.name) return
def _configure(self): Configurable._configure(self) if (self.inventory.usage or self.inventory.showProperties or self.inventory.showComponents or self.inventory.showCurator): self._helpRequested = True else: for component in self.components(): if component._helpRequested: self._helpRequested = True break return
def updateConfiguration(self, registry): # verify that we were handed the correct registry node if registry: name = registry.name if name not in self.aliases: import journal journal.firewall("inventory").log( "bad registry node: %s != %s" % (name, self.name)) return Configurable.updateConfiguration(self, registry)
def __init__(self, app): Configurable.__init__(self, app.name) self.app = app self.registry = None
def __init__(self, name=None): if name is None: name = "session" Configurable.__init__(self, name) self._info = journal.info(name) return
def __init__(self, name): Configurable.__init__(self, name) self._debug = journal.debug(name) return
def __init__(self, name): Configurable.__init__(self, name) return