source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/base.py @ 2476

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/base.py@2476
Revision 2476, 875 bytes checked in by spascoe, 13 years ago (diff)

Adding Pylons template project as ows_server.

Line 
1from pylons import Response, c, g, cache, request, session
2from pylons.controllers import WSGIController
3from pylons.decorators import jsonify, validate
4from pylons.templating import render, render_response
5from pylons.helpers import abort, redirect_to, etag_cache
6from pylons.i18n import N_, _, ungettext
7import ows_server.models as model
8import ows_server.lib.helpers as h
9
10class BaseController(WSGIController):
11    def __call__(self, environ, start_response):
12        # Insert any code to be run per request here. The Routes match
13        # is under environ['pylons.routes_dict'] should you want to check
14        # the action or route vars here
15        return WSGIController.__call__(self, environ, start_response)
16
17# Include the '_' function in the public names
18__all__ = [__name for __name in locals().keys() if not __name.startswith('_') \
19           or __name == '_']
Note: See TracBrowser for help on using the repository browser.