Changeset 7486 for cowsserver


Ignore:
Timestamp:
21/09/10 11:34:23 (9 years ago)
Author:
astephen
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsserver/branches/migrate-py26-pylons10/lib/cowsserver/websetup.py

    r6072 r7486  
    22import logging 
    33 
    4 from paste.deploy import appconfig 
    5 from pylons import config 
     4import pylons.test 
    65 
    76from cowsserver.config.environment import load_environment 
     
    98log = logging.getLogger(__name__) 
    109 
    11 def setup_config(command, filename, section, vars): 
    12     """Place any commands to setup your server here""" 
    13     conf = appconfig('config:' + filename) 
    14     load_environment(conf.global_conf, conf.local_conf) 
     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 TracChangeset for help on using the changeset viewer.