Exemplo n.º 1
0
def make_app(global_config, **local_conf):
    '''Make a wsgi app and return it

    Designed for use by paster or modwsgi etc
    '''
    model.configure(local_conf['dburi'])
    model.createdb()

    app = AnnotatorStore(mount_point=local_conf.get('mount_point') or '/')
    return app
Exemplo n.º 2
0
def make_app(global_config, **local_conf):
    '''Make a wsgi app and return it

    Designed for use by paster or modwsgi etc
    '''
    model.configure(local_conf['dburi'])
    model.createdb()

    app = AnnotatorStore(mount_point=local_conf.get('mount_point') or '/')
    return app
Exemplo n.º 3
0
import os
import annotator.model as model

# Use in-memory database for testing
model.configure('sqlite:///:memory:')
model.rebuilddb()