Child: [1f90c6] (diff)

Download this file

schema.py    22 lines (17 with data), 546 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- coding: utf-8 -*-
"""Setup the allura application"""
import logging
from tg import config
import pylons
from allura.lib.custom_middleware import MagicalC, environ
log = logging.getLogger(__name__)
def setup_schema(command, conf, vars):
"""Place any commands to setup allura here"""
import ming
environ.set_environment({})
pylons.c._push_object(MagicalC(EmptyClass(), environ))
ming.configure(**conf)
from allura import model
# Nothing to do
log.info('setup_schema called')
class EmptyClass(object): pass