Files
@ cbfb853a0a4c
Branch filter:
Location: kallithea/pylons_app/websetup.py - annotation
cbfb853a0a4c
704 B
text/x-python
fixed bug when author had " in name, thus breaking the javascript data format
small fix to css for commit messages, and fixed a bug when message had some special chars that caused unicodeDecode error
small fix to css for commit messages, and fixed a bug when message had some special chars that caused unicodeDecode error
564e40829f80 0e87466a117e 0e87466a117e 0e87466a117e 0e87466a117e 564e40829f80 0e87466a117e 0e87466a117e 0e87466a117e 564e40829f80 564e40829f80 0e87466a117e 0e87466a117e 0e87466a117e 564e40829f80 564e40829f80 0e87466a117e 0e87466a117e 1ef52a70f3b7 0e87466a117e 0e87466a117e 3ed2d46a2ca7 ec7b76d4bda4 0e87466a117e | """Setup the pylons_app application"""
from os.path import dirname as dn, join as jn
from pylons_app.config.environment import load_environment
from pylons_app.lib.db_manage import DbManage
import logging
import os
import sys
log = logging.getLogger(__name__)
ROOT = dn(dn(os.path.realpath(__file__)))
sys.path.append(ROOT)
def setup_app(command, conf, vars):
"""Place any commands to setup pylons_app here"""
dbmanage = DbManage(log_sql=True)
dbmanage.create_tables(override=True)
dbmanage.config_prompt()
dbmanage.admin_prompt()
dbmanage.create_permissions()
dbmanage.populate_default_permissions()
load_environment(conf.global_conf, conf.local_conf, initial=True)
|