##// END OF EJS Templates
Added initial query skipp when seting up the app....
Added initial query skipp when seting up the app. Added internal server error when deleting user using ajax permission form removed graph unneded code

File last commit:

r365:ec7b76d4 default
r365:ec7b76d4 default
Show More
websetup.py
23 lines | 660 B | text/x-python | PythonLexer
Marcin Kuzminski
initial commit.
r0 """Setup the pylons_app application"""
updated installation instruction, made more user friendly way of creating all needed configs. All is done now from paster setup-app
r327
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
Marcin Kuzminski
initial commit.
r0 import logging
updated installation instruction, made more user friendly way of creating all needed configs. All is done now from paster setup-app
r327 import os
import sys
Marcin Kuzminski
initial commit.
r0 log = logging.getLogger(__name__)
updated installation instruction, made more user friendly way of creating all needed configs. All is done now from paster setup-app
r327 ROOT = dn(dn(os.path.realpath(__file__)))
sys.path.append(ROOT)
Marcin Kuzminski
initial commit.
r0 def setup_app(command, conf, vars):
"""Place any commands to setup pylons_app here"""
updated installation instruction, made more user friendly way of creating all needed configs. All is done now from paster setup-app
r327 dbmanage = DbManage(log_sql=True)
dbmanage.create_tables(override=True)
Made config file free configuration based on database and capable of beeing manage via application settings + some code cleanups
r341 dbmanage.config_prompt()
updated installation instruction, made more user friendly way of creating all needed configs. All is done now from paster setup-app
r327 dbmanage.admin_prompt()
dbmanage.create_permissions()
Added initial query skipp when seting up the app....
r365 load_environment(conf.global_conf, conf.local_conf, initial=True)
updated installation instruction, made more user friendly way of creating all needed configs. All is done now from paster setup-app
r327