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, 11 years ago
(diff) |
Working Genshi PEP result handler plugin
|
Line | |
---|
1 | """WSGI Policy Enforcement Point basic result handler package - contains modules |
---|
2 | with different result handler implementations. |
---|
3 | |
---|
4 | Functionality in this module moved from original authz package location |
---|
5 | |
---|
6 | NERC 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" |
---|
14 | from ndg.security.server.wsgi.session import SessionMiddlewareBase |
---|
15 | |
---|
16 | |
---|
17 | class 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.