コード例 #1
0
ファイル: __init__.py プロジェクト: smanne/cydra
    def __init__(self, config=None):
        logging.basicConfig(level=logging.DEBUG)

        ComponentManager.__init__(self)

        load_components(self)

        self.config = Configuration(self)
        self.config.load(config)

        logger.debug("Configuration loaded: %s", repr(self.config._data))
コード例 #2
0
ファイル: __init__.py プロジェクト: mensi/cydra
    def __init__(self, config=None):
        logging.basicConfig(level=logging.DEBUG)

        ComponentManager.__init__(self)

        load_components(self, 'cydra.config')

        self.config = Configuration(self)
        self.config.load(config)
        logger.debug("Configuration loaded: %s", repr(self.config._data))

        load_components(self)

        # Update last instance to allow instance reusing
        Cydra._last_instance = self
コード例 #3
0
ファイル: __init__.py プロジェクト: mensi/cydra
    def __init__(self, config=None):
        logging.basicConfig(level=logging.DEBUG)

        ComponentManager.__init__(self)

        load_components(self, "cydra.config")

        self.config = Configuration(self)
        self.config.load(config)
        logger.debug("Configuration loaded: %s", repr(self.config._data))

        load_components(self)

        # Update last instance to allow instance reusing
        Cydra._last_instance = self