##// END OF EJS Templates
complete rewrite of paster commands,...
complete rewrite of paster commands, used fancy celery-pylons baseCommand to implement better support for paster commands fixed make-index, and paster celeryd. Moved config's add_cache to utils

File last commit:

r781:7ae66bdd beta
r785:277427ac beta
Show More
websetup.py
25 lines | 708 B | text/x-python | PythonLexer
renamed project to rhodecode
r547 """Setup the rhodecode application"""
from rhodecode.config.environment import load_environment
from rhodecode.lib.db_manage import DbManage
import logging
import os
log = logging.getLogger(__name__)
def setup_app(command, conf, vars):
"""Place any commands to setup rhodecode here"""
fixed db manage, to work on other databases than sqlite
r781 dbconf = conf['sqlalchemy.db1.url']
dbmanage = DbManage(log_sql=True, dbconf=dbconf, root=conf['here'], tests=False)
renamed project to rhodecode
r547 dbmanage.create_tables(override=True)
removed egg info, update files for distutils build...
r552 dbmanage.config_prompt(None)
renamed project to rhodecode
r547 dbmanage.create_default_user()
dbmanage.admin_prompt()
dbmanage.create_permissions()
dbmanage.populate_default_permissions()
fixed db manage, to work on other databases than sqlite
r781
added fault tolerant case when celeryconfig is not present in the directory....
r555 load_environment(conf.global_conf, conf.local_conf, initial=True)
renamed project to rhodecode
r547
removed egg info, update files for distutils build...
r552