Mercurial > kallithea
comparison pylons_app/config/environment.py @ 473:6b934c9607e7 celery
Improved testing scenarios. Made test env creator
Fixed hg_model error message
some other tweeks and fixes
Models fixe for uniq email, and removed some extra not needed imports from model main module
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 13 Sep 2010 01:23:58 +0200 |
parents | e94f4e54dc03 |
children | fefffd6fd5f4 |
comparison
equal
deleted
inserted
replaced
472:91292686c1ed | 473:6b934c9607e7 |
---|---|
47 input_encoding='utf-8', default_filters=['escape'], | 47 input_encoding='utf-8', default_filters=['escape'], |
48 imports=['from webhelpers.html import escape']) | 48 imports=['from webhelpers.html import escape']) |
49 | 49 |
50 #sets the c attribute access when don't existing attribute are accessed | 50 #sets the c attribute access when don't existing attribute are accessed |
51 config['pylons.strict_tmpl_context'] = True | 51 config['pylons.strict_tmpl_context'] = True |
52 test = os.path.split(config['__file__'])[-1] == 'tests.ini' | 52 test = os.path.split(config['__file__'])[-1] == 'test.ini' |
53 if test: | |
54 from pylons_app.lib.utils import make_test_env | |
55 make_test_env() | |
53 #MULTIPLE DB configs | 56 #MULTIPLE DB configs |
54 # Setup the SQLAlchemy database engine | 57 # Setup the SQLAlchemy database engine |
55 if config['debug'] and not test: | 58 if config['debug'] and not test: |
56 #use query time debugging. | 59 #use query time debugging. |
57 from pylons_app.lib.timerproxy import TimerProxy | 60 from pylons_app.lib.timerproxy import TimerProxy |