source: DPPP/ukcip02_server/trunk/ukcip_server/ukcip_server/websetup.py @ 3360

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/DPPP/ukcip02_server/trunk/ukcip_server/ukcip_server/websetup.py@3532
Revision 3360, 423 bytes checked in by spascoe, 14 years ago (diff)

Quick import of code I have been working on to server ukcip02 data.
This code may well move soon.

Line 
1"""Setup the ukcip_server application"""
2import logging
3
4from paste.deploy import appconfig
5from pylons import config
6
7from ukcip_server.config.environment import load_environment
8
9log = logging.getLogger(__name__)
10
11def setup_config(command, filename, section, vars):
12    """Place any commands to setup ukcip_server here"""
13    conf = appconfig('config:' + filename)
14    load_environment(conf.global_conf, conf.local_conf)
Note: See TracBrowser for help on using the repository browser.