Switch to unified view

a/Allura/allura/websetup/schema.py b/Allura/allura/websetup/schema.py
...
...
2
"""Setup the allura application"""
2
"""Setup the allura application"""
3
3
4
import logging
4
import logging
5
from tg import config
5
from tg import config
6
import pylons
6
import pylons
7
from allura.lib.custom_middleware import MagicalC, environ
8
7
9
log = logging.getLogger(__name__)
8
log = logging.getLogger(__name__)
10
9
11
def setup_schema(command, conf, vars):
10
def setup_schema(command, conf, vars):
12
    """Place any commands to setup allura here"""
11
    """Place any commands to setup allura here"""
13
    import ming
12
    import ming
14
    environ.set_environment({})
13
    import allura
15
    pylons.c._push_object(MagicalC(EmptyClass(), environ))
14
    pylons.c._push_object(EmptyClass())
15
    allura.credentials._push_object(allura.lib.security.Credentials())
16
    ming.configure(**conf)
16
    ming.configure(**conf)
17
    from allura import model
17
    from allura import model
18
    # Nothing to do
18
    # Nothing to do
19
    log.info('setup_schema called')
19
    log.info('setup_schema called')
20
20