Esempio n. 1
0
 def __init__( self, **kwargs ):
     ConfigProcessor.__init__( self, 'options', **kwargs )
     self.__case_sensitive      = False  # /True
     self.__connect_args        = {}
     self.__convert_unicode     = True   # /False
     self.__echo                = False  # /True
     self.__echo_pool           = False  # /True
     self.__encoding            = 'utf-8'
     self.__execution_options   = SqlAlchemyConfigExecutionOptions( **kwargs )
     self.__implicit_returning  = True   # /False
     self.__isolation_level     = ''
     self.__label_length        = None
     self.__logging_name        = ''
     self.__max_overflow        = 10
     self.__paramstyle          = None
     self.__pool                = None
     self.__poolclass           = None
     self.__pool_logging_name   = ''
     self.__pool_pre_ping       = False  # /True
     self.__pool_size           = 5
     self.__pool_recycle        = -1
     self.__pool_reset_on_return= 'rollback'
     self.__pool_timeout        = 30
     self.__pool_use_lifo       = False  # /True
     self.__strategy            = 'plain'
     self.__executor            = None
     return
Esempio n. 2
0
 def __init__( self, **kwargs ):
     ConfigProcessor.__init__( self, **kwargs )
     self.__host = ''
     self.__port = 0
     self.__user = ''
     self.__password = ''
     self.__database = ''
     return
Esempio n. 3
0
 def __init__( self, **kwargs ):
     ConfigProcessor.__init__( self, 'execution', **kwargs )
     self.__autocommit              = False  # /True
     self.__compiled_cache          = SqlAlchemyConfigCompiledCache( **kwargs )
     self.__isolation_level         = ''
     self.__no_parameters           = False  # /True
     self.__stream_results          = False  # /True
     self.__schema_translate_map    = SqlAlchemyConfigSchemaTranslate( **kwargs )
     return
Esempio n. 4
0
    def __init__(self, **kwargs):
        """constructor of the WebHostConfig class to set the default values

        :param kwargs:      dict:   keywords for the ConfigProcessor class
        """
        ConfigProcessor.__init__(self, 'web', **kwargs)
        self.__interface = 'localhost'
        self.__port = 8000
        return
Esempio n. 5
0
    def __init__(self, name, **kwargs):
        """constructor of the logger class

        :param name:        str:    name of the configuration item
        :param kwargs:      dict:   keywords for the ConfigProcessor class
        """
        ConfigProcessor.__init__(self, name, **kwargs)
        LoggingLevelMixin.__init__(self, **kwargs)
        self.__propagate = False
        self.__handlers = []
Esempio n. 6
0
    def __init__(self, **kwargs):
        """constructor of the root class

        :param name:        str:    name of the configuration item
        :param kwargs:      dict:   keywords for the ConfigProcessor class
        """
        ConfigProcessor.__init__(self, 'root', **kwargs)
        LoggingLevelMixin.__init__(self, **kwargs)
        self.__handlers = []
        return
Esempio n. 7
0
    def __init__(self, name, **kwargs):
        """constructor of the formatter class

        :param name:        str:    name of the configuration item
        :param kwargs:      dict:   keywords for the ConfigProcessor class
        """
        ConfigProcessor.__init__(self, 'formatter', **kwargs)
        self.__name = name
        self.__format = '%(asctime)s %(levelname)-8s %(name)-15s %(message)s'
        self.__datefmt = '%Y-%m-%d %H:%M:%S'
        self.__style = '%'
        return
Esempio n. 8
0
    def __init__(self, **kwargs):
        """constructor of the logging class

        :param name:        str:    name of the configuration item
        :param kwargs:      dict:   keywords for the ConfigProcessor class
        """
        ConfigProcessor.__init__(self, 'logging', **kwargs)
        self.__version = 1
        self.__formatters = LoggingFormattersConfig(**kwargs)
        self.__handlers = LoggingHandlersConfig(**kwargs)
        self.__loggers = LoggingLoggersConfig(**kwargs)
        self.__root = LoggingRootConfig(**kwargs)
        return
Esempio n. 9
0
 def __init__(self, name='common', **kwargs):
     ConfigProcessor.__init__(self, name, **kwargs)
     FlaskConfigMixin.__init__(self, **kwargs)
     self.__paths = PathsConfig(must_exists=False, **kwargs)
     self.__debug = False  # default
     self.__poll = False  # default
     self.__web = WebHostConfig(**kwargs)
     self.__database = DatabaseConfig(**kwargs)
     self.__logging = LoggingConfig(**kwargs)
     FlaskSqlAlchemyConfigMixin.__init__(self,
                                         database_settings=self.database,
                                         **kwargs)
     FlaskSchedulerConfigMixin.__init__(self, **kwargs)
     return
Esempio n. 10
0
    def __init__(self, name, class_name='NullHandler', **kwargs):
        """constructor of the NullHandler class

        This class also doubles as the base class for all the handler classes.

        :param name:        str:    name of the configuration item
        :param kwargs:      dict:   keywords for the ConfigProcessor class
        """
        ConfigProcessor.__init__(self, class_name, {"class": "cls"}, **kwargs)
        LoggingLevelMixin.__init__(self, **kwargs)
        self.__name = name
        self.__class = ''
        self.__formatter = ''
        self.__filters = []
        return
Esempio n. 11
0
    def __init__( self, **kwargs ):
        """Constructor to setup the database object with default values

        :param kwargs:  dict:   keywords for the ConfigProcessor class
        :return:
        """
        ConfigProcessor.__init__( self, 'database', **kwargs )
        UserPassConfigMixin.__init__( self, **kwargs )
        HostPortConfigMixin.__init__( self, **kwargs )
        self.__engines  = ( 'sqlite',
                            'postgresql',
                            'postgresql+pg8000',
                            'postgresql+psycopg2',
                            'mysql',
                            'mysql+mysqldb',
                            'mysql+pymysql',
                            'oracle',
                            'oracle+cx_oracle',
                            'mssql+pyodbc',
                            'mssql+pymssql' )
        self.__engine   = ''
        self.__database = ''
        return
Esempio n. 12
0
 def __init__(self):
     """
     """
     ConfigProcessor.__init__(self, 'SCHEDULER_JOB_DEFAULTS')
     return
Esempio n. 13
0
 def __init__(self, **kwargs):
     """
     """
     ConfigProcessor.__init__(self, '*', **kwargs)
     return
Esempio n. 14
0
 def __init__( self, **kwargs ):
     ConfigProcessor.__init__( self, 'schema', **kwargs )
     self.__a = 0
Esempio n. 15
0
 def __init__( self, **kwargs ):
     ConfigProcessor.__init__( self, 'SQLALCHEMY_BINDS', **kwargs )
     # wildcard object
     return
Esempio n. 16
0
 def __init__(self, **kwargs):
     ConfigProcessor.__init__(self, 'flask', **kwargs)
     FlaskConfigMixin.__init__(self, **kwargs)
Esempio n. 17
0
 def __init__(self, **kwargs):
     """
     """
     ConfigProcessor.__init__(self, 'SCHEDULER_EXECUTORS', **kwargs)
     return
Esempio n. 18
0
 def __init__(self, **kwargs):
     ConfigProcessor.__init__(self, 'paths', **kwargs)
     self.__library_paths = PathList(must_exists=False)
     self.__keyword_paths = PathList(must_exists=False)
     self.__resource_paths = PathList(must_exists=False)
     return