source: cows/trunk/cows/pylons/project_templates/cows_server/+package+/lib/app_globals.py @ 4917

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/pylons/project_templates/cows_server/+package+/lib/app_globals.py@4917
Revision 4917, 397 bytes checked in by spascoe, 11 years ago (diff)

Created a Paste project template based on Dom's example server. This
was constructed by following the tutorial at
 http://pylonsbook.com/alpha1/simplesite_part_3 "Making SimpleSite? into a
Paste Project Template"

Line 
1"""The application's Globals object"""
2from pylons import config
3
4class Globals(object):
5    """Globals acts as a container for objects available throughout the
6    life of the application
7    """
8
9    def __init__(self):
10        """One instance of Globals is created during application
11        initialization and is available during requests via the 'g'
12        variable
13        """
14        pass
Note: See TracBrowser for help on using the repository browser.