Child: [d6b18d] (diff)

Download this file

schema.py    26 lines (20 with data), 652 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- coding: utf-8 -*-
"""Setup the allura application"""
import logging
from tg import config
import pylons
from paste.registry import Registry
log = logging.getLogger(__name__)
REGISTRY = Registry()
def setup_schema(command, conf, vars):
"""Place any commands to setup allura here"""
import ming
import allura
REGISTRY.prepare()
REGISTRY.register(pylons.c, EmptyClass())
REGISTRY.register(pylons.g, config['pylons.app_globals'])
REGISTRY.register(allura.credentials, allura.lib.security.Credentials())
ming.configure(**conf)
# Nothing to do
log.info('setup_schema called')
class EmptyClass(object): pass