source: TI12-security/trunk/NDGSecurity/python/ndg_security_server/ndg/security/server/wsgi/authz/result_handler/__init__.py @ 6271

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/ndg_security_server/ndg/security/server/wsgi/authz/result_handler/__init__.py@6271
Revision 6271, 1.1 KB checked in by pjkersha, 10 years ago (diff)

Working Genshi PEP result handler plugin

Line 
1"""WSGI Policy Enforcement Point basic result handler package - contains modules
2with different result handler implementations.
3
4Functionality in this module moved from original authz package location
5
6NERC DataGrid Project
7"""
8__author__ = "P J Kershaw"
9__date__ = "05/01/10"
10__copyright__ = "(C) 2010 Science and Technology Facilities Council"
11__contact__ = "Philip.Kershaw@stfc.ac.uk"
12__revision__ = "$Id: $"
13__license__ = "BSD - see LICENSE file in top-level directory"
14from ndg.security.server.wsgi.session import SessionMiddlewareBase
15
16
17class PEPResultHandlerMiddlewareBase(SessionMiddlewareBase):
18    """Abstract Base class for Policy Enforcement Point result handler
19    specialisations"""
20   
21    @SessionMiddlewareBase.initCall
22    def __call__(self, environ, start_response):
23        """Set access denied response in derived class
24       
25        @type environ: dict
26        @param environ: WSGI environment variables dictionary
27        @type start_response: function
28        @param start_response: standard WSGI start response function
29        @rtype: iterable
30        @return: response
31        """ 
32        raise NotImplementedError()
Note: See TracBrowser for help on using the repository browser.