Beispiel #1
0
def includeme(config):
    settings = config.registry.settings
    config.registry.sessionmaker = meta.create_sessionmaker(settings, "sqlalchemy.")
    config.add_request_method(db, reify=True)

    formalchemy.config.engine = formalchemy.templates.MakoEngine(
            directories=[ "faapp/templates/formalchemy"],
            input_encoding='utf-8',
            output_encoding='utf-8')
Beispiel #2
0
def includeme(config):
    settings = config.registry.settings
    config.registry.sessionmaker = meta.create_sessionmaker(settings, "sqlalchemy.")
    config.add_request_method(db, reify=True)