source: TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/pylonsapp/pylonsapp/websetup.py @ 6868

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/pylonsapp/pylonsapp/websetup.py@6868
Revision 6868, 425 bytes checked in by pjkersha, 10 years ago (diff)
  • Added Pylons login/logout decorators and example Pylons app in ndg.security.test.integration.pylonsapp
  • Cleaned up ndg.security.server removing authnservice, conf, log and share packages.
Line 
1"""Setup the pylonsapp application"""
2import logging
3
4import pylons.test
5
6from pylonsapp.config.environment import load_environment
7
8log = logging.getLogger(__name__)
9
10def setup_app(command, conf, vars):
11    """Place any commands to setup pylonsapp 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.