##// END OF EJS Templates
Added tag v0.8.3 for changeset ca41d544dbdf
Added tag v0.8.3 for changeset ca41d544dbdf

File last commit:

r491:fefffd6f celery
r500:5a650ddd default
Show More
websetup.py
32 lines | 885 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
Improved testing scenarios. Made test env creator...
r473 from os.path import dirname as dn
updated installation instruction, made more user friendly way of creating all needed configs. All is done now from paster setup-app
r327 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
tests fix, put vcs testing tarball
r469
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)
Improved testing scenarios. Made test env creator...
r473
Marcin Kuzminski
initial commit.
r0 def setup_app(command, conf, vars):
"""Place any commands to setup pylons_app here"""
implemented basic (startup) nose test suite.
r459 log_sql = True
tests = False
Improved testing scenarios. Made test env creator...
r473 REPO_TEST_PATH = None
implemented basic (startup) nose test suite.
r459
Added some more tests, rewrite testing schema, to autogenerate fresh db, new index....
r491 dbname = os.path.split(conf['sqlalchemy.db1.url'])[-1]
implemented basic (startup) nose test suite.
r459
dbmanage = DbManage(log_sql, dbname, tests)
updated installation instruction, made more user friendly way of creating all needed configs. All is done now from paster setup-app
r327 dbmanage.create_tables(override=True)
implemented basic (startup) nose test suite.
r459 dbmanage.config_prompt(REPO_TEST_PATH)
dbmanage.create_default_user()
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