##// END OF EJS Templates
just a #
just a #

File last commit:

r341:1ef52a70 default
r361:35816561 default
Show More
websetup.py
23 lines | 646 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()
Marcin Kuzminski
initial commit.
r0 load_environment(conf.global_conf, conf.local_conf)
updated installation instruction, made more user friendly way of creating all needed configs. All is done now from paster setup-app
r327