Example #1
0
    def __init__(self, name, facility):
        Configurable.__init__(self, name)
        self.facility = facility

        self._showHelpOnly = False
        
        return
Example #2
0
    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
Example #3
0
    def __init__(self, name=None, facility=None):
        Configurable.__init__(self, name)
        #self.facility = facility # not used

        self._helpRequested = False

        return
Example #4
0
    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
Example #5
0
 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
Example #6
0
    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)
Example #7
0
    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)
Example #8
0
    def __init__(self, app):
        Configurable.__init__(self, app.name)

        self.app = app
        self.registry = None
Example #9
0
 def __init__(self, name=None):
     if name is None:
         name = "session"
     Configurable.__init__(self, name)
     self._info = journal.info(name)
     return
Example #10
0
 def __init__(self, name):
     Configurable.__init__(self, name)
     self._debug = journal.debug(name)
     return
Example #11
0
    def __init__(self, app):
        Configurable.__init__(self, app.name)

        self.app = app
        self.registry = None
Example #12
0
 def __init__(self, name):
     Configurable.__init__(self, name)
     return