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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg-security/TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/pylonsapp/pylonsapp/lib/base.py@6868
Revision 6868, 563 bytes checked in by pjkersha, 11 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"""The base Controller API
2
3Provides the BaseController class for subclassing.
4"""
5from pylons.controllers import WSGIController
6from pylons.templating import render_mako as render
7
8class BaseController(WSGIController):
9
10    def __call__(self, environ, start_response):
11        """Invoke the Controller"""
12        # WSGIController.__call__ dispatches to the Controller method
13        # the request is routed to. This routing information is
14        # available in environ['pylons.routes_dict']
15        return WSGIController.__call__(self, environ, start_response)
Note: See TracBrowser for help on using the repository browser.