Ignore:
Timestamp:
16/03/10 11:56:31 (11 years ago)
Author:
pjkersha
Message:

Added XACML Target ElementTree based parser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/NDGSecurity/python/ndg_security_common/ndg/security/common/authz/xacml/parsers/etree/targetreader.py

    r6733 r6734  
    1 ''' 
    2 Created on 16 Mar 2010 
     1"""NDG Security XACML ElementTree based Target Element reader  
    32 
    4 @author: pjkersha 
    5 ''' 
     3NERC DataGrid Project 
     4""" 
     5__author__ = "P J Kershaw" 
     6__date__ = "16/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: $" 
    612from ndg.security.common.authz.xacml import XMLParseError 
     13from ndg.security.common.authz.xacml.target import Target 
    714from ndg.security.common.authz.xacml.action import Action 
    815from ndg.security.common.authz.xacml.resource import Resource 
    916from ndg.security.common.authz.xacml.subject import Subject 
    1017from ndg.security.common.authz.xacml.environment import Environment 
    11 from ndg.security.common.authz.xacml.etree.reader import AbstractReader 
     18from ndg.security.common.authz.xacml.parsers.etree import QName 
     19from ndg.security.common.authz.xacml.parsers.etree.reader import \ 
     20    EtreeAbstractReader 
    1221 
    1322 
    14 class TargetReader(AbstractReader): 
     23class TargetReader(EtreeAbstractReader): 
    1524    """ElementTree based parser for XACML Target elements""" 
    1625     
     
    4453            else: 
    4554                raise XMLParseError("XACML Target child element name %r not " 
    46                                     "recognised" % localName)        
     55                                    "recognised" % localName)       
     56                 
     57        return target  
Note: See TracChangeset for help on using the changeset viewer.