source: TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/response.py @ 7087

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/response.py@7087
Revision 7087, 1.2 KB checked in by pjkersha, 10 years ago (diff)

Incomplete - task 2: XACML-Security Integration

  • updating epydoc ready for release.
  • Property svn:keywords set to Id
Line 
1"""NDG XACML module for Response type
2
3NERC DataGrid
4"""
5__author__ = "P J Kershaw"
6__date__ = "23/03/10"
7__copyright__ = "(C) 2010 Science and Technology Facilities Council"
8__contact__ = "Philip.Kershaw@stfc.ac.uk"
9__license__ = "BSD - see LICENSE file in top-level directory"
10__contact__ = "Philip.Kershaw@stfc.ac.uk"
11__revision__ = "$Id$"
12import logging
13log = logging.getLogger(__name__)
14
15from ndg.xacml.utils import TypedList
16from ndg.xacml.core.context import XacmlContextBase
17from ndg.xacml.core.context.result import Result
18
19
20class Response(XacmlContextBase):
21    """XACML Response type
22    @cvar ELEMENT_LOCAL_NAME: XML local element name for the response
23    @type ELEMENT_LOCAL_NAME: string
24
25    @ivar __results: resource content
26    @type __results: ndg.xacml.utils.TypedList
27    """
28    ELEMENT_LOCAL_NAME = 'Response'
29   
30    __slots__ = ('__results', )
31   
32    def __init__(self):
33        """"Initialise results list"""
34        super(Response, self).__init__()
35        self.__results = TypedList(Result)
36       
37    @property
38    def results(self):
39        """Get Response results list
40       
41        @return: results list
42        @rtype: ndg.xacml.utils.TypedList
43        """
44        return self.__results
45   
Note: See TracBrowser for help on using the repository browser.