##// END OF EJS Templates
Added new style error display,...
Added new style error display, fixed changing repo name to existing one some sa session remove added rename repo BIG bug, when renaming to existing name was fixed

File last commit:

r341:1ef52a70 default
r356:b0715a78 default
Show More
websetup.py
23 lines | 646 B | text/x-python | PythonLexer
"""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()
load_environment(conf.global_conf, conf.local_conf)