##// END OF EJS Templates
fixed templating issue with graph, and improved toggle of commiters
fixed templating issue with graph, and improved toggle of commiters

File last commit:

r417:3ed2d46a default
r422:fc361306 default
Show More
websetup.py
24 lines | 704 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()
permission refactoring,...
r417 dbmanage.populate_default_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