Exemplo n.º 1
0
def register(app, jinja_env, class_loader, **kwargs):
    search_path = os.path.normpath(
        os.path.join(os.path.abspath(os.path.dirname(__file__)), u"templates"))
    jinja_env.loader.loaders.append(jinja2.FileSystemLoader(search_path))

    jinja_env.globals.update({
        'DocMultiDeclensionField':
        DocMultiDeclensionField,
        'InitialCapitalDepositTypeEnum':
        InitialCapitalDepositTypeEnum
    })

    class_loader.POSSIBLE_LOCATIONS.append('services.llc_reg.documents')
    class_loader.POSSIBLE_LOCATIONS.append('services.llc_reg.documents.enums')
    class_loader.POSSIBLE_LOCATIONS.append(
        'services.llc_reg.documents.general_doc_fields')
    class_loader.POSSIBLE_LOCATIONS.append(
        'services.llc_reg.documents.llc_gov_forms_adapters')
    class_loader.POSSIBLE_LOCATIONS.append(
        'services.llc_reg.documents.llc_validators')

    BatchManager.register_manager(DocumentBatchTypeEnum.DBT_NEW_LLC,
                                  LlcRegBatchManager)

    _init_doc_requisities(app.config)
Exemplo n.º 2
0
def register(app, jinja_env, class_loader, **kwargs):
    search_path = os.path.normpath(os.path.join(os.path.abspath(os.path.dirname(__file__)), u"templates"))
    jinja_env.loader.loaders.append(jinja2.FileSystemLoader(search_path))

    class_loader.POSSIBLE_LOCATIONS.append('services.osago.documents')
    class_loader.POSSIBLE_LOCATIONS.append('services.osago.documents.enums')
    class_loader.POSSIBLE_LOCATIONS.append('services.osago.documents.general_doc_fields')

    BatchManager.register_manager(DocumentBatchTypeEnum.DBT_OSAGO, OsagoBatchManager)

    _init_doc_requisities(app.config)
Exemplo n.º 3
0
def register(app, jinja_env, class_loader, **kwargs):
    search_path = os.path.normpath(os.path.join(os.path.abspath(os.path.dirname(__file__)), u"templates"))
    jinja_env.loader.loaders.append(jinja2.FileSystemLoader(search_path))

    class_loader.POSSIBLE_LOCATIONS.append('services.test_svc.documents.enums')
    class_loader.POSSIBLE_LOCATIONS.append('services.test_svc.documents.ext_methods')
    class_loader.POSSIBLE_LOCATIONS.append('services.test_svc.documents.ext_validators')

    BatchManager.register_manager(DocumentBatchTypeEnum.DBT_TEST_TYPE, TestSvcManager)

    _init_doc_requisities(app.config)
Exemplo n.º 4
0
def register(app, jinja_env, class_loader, **kwargs):
    search_path = os.path.normpath(
        os.path.join(os.path.abspath(os.path.dirname(__file__)), u"templates"))
    jinja_env.loader.loaders.append(jinja2.FileSystemLoader(search_path))

    class_loader.POSSIBLE_LOCATIONS.append('services.osago.documents')
    class_loader.POSSIBLE_LOCATIONS.append('services.osago.documents.enums')
    class_loader.POSSIBLE_LOCATIONS.append(
        'services.osago.documents.general_doc_fields')

    BatchManager.register_manager(DocumentBatchTypeEnum.DBT_OSAGO,
                                  OsagoBatchManager)

    _init_doc_requisities(app.config)
Exemplo n.º 5
0
def register(app, jinja_env, class_loader, **kwargs):
    search_path = os.path.normpath(
        os.path.join(os.path.abspath(os.path.dirname(__file__)), u"templates"))
    jinja_env.loader.loaders.append(jinja2.FileSystemLoader(search_path))

    class_loader.POSSIBLE_LOCATIONS.append('services.test_svc.documents.enums')
    class_loader.POSSIBLE_LOCATIONS.append(
        'services.test_svc.documents.ext_methods')
    class_loader.POSSIBLE_LOCATIONS.append(
        'services.test_svc.documents.ext_validators')

    BatchManager.register_manager(DocumentBatchTypeEnum.DBT_TEST_TYPE,
                                  TestSvcManager)

    _init_doc_requisities(app.config)