source: TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/response.py @ 7064

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

Incomplete - task 2: XACML-Security Integration

  • added and and function and placeholders fro xpath-node-* functions
  • Property svn:keywords set to Id
Line 
1"""NDG XACML module for Response type
2
3NERC DataGrid Project
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    ELEMENT_LOCAL_NAME = 'Response'
23   
24    __slots__ = ('__results', )
25   
26    def __init__(self):
27        super(Response, self).__init__()
28        self.__results = TypedList(Result)
29       
30    @property
31    def results(self):
32        """Response results list"""
33        return self.__results
34   
Note: See TracBrowser for help on using the repository browser.