source: cowsserver/branches/migrate-py26-pylons10/lib/cowsserver/websetup.py @ 7486

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cowsserver/branches/migrate-py26-pylons10/lib/cowsserver/websetup.py@7486
Revision 7486, 425 bytes checked in by astephen, 11 years ago (diff)

Updated script to mirror that of a new pylons 1.0 project.

Line 
1"""Setup the cowsserver application"""
2import logging
3
4import pylons.test
5
6from cowsserver.config.environment import load_environment
7
8log = logging.getLogger(__name__)
9
10def setup_app(command, conf, vars):
11    """Place any commands to setup notcows here"""
12    # Don't reload the app if it was loaded under the testing environment
13    if not pylons.test.pylonsapp:
14        load_environment(conf.global_conf, conf.local_conf)
Note: See TracBrowser for help on using the repository browser.