Ignore:
Timestamp:
16/03/10 16:40:35 (10 years ago)
Author:
pjkersha
Message:

Adding parsing for Subject type and SubjectMatch? elements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/rulereader.py

    r6746 r6747  
    1 """NDG XACML ElementTree based Target Element reader  
     1"""NDG XACML ElementTree based Rule Element reader  
    22 
    33NERC DataGrid Project 
     
    1313from ndg.xacml.core.condition import Condition 
    1414from ndg.xacml.core.target import Target 
     15from ndg.xacml.parsers import XMLParseError 
    1516from ndg.xacml.parsers.etree import QName 
    1617from ndg.xacml.parsers.etree.reader import ETreeAbstractReader 
     
    2324    ''' 
    2425    def __call__(self, obj): 
    25         """Parse policy object""" 
     26        """Parse rule object""" 
    2627        elem = super(RuleReader, self)._parse(obj) 
    2728         
     
    6162            elif localName == Target.ELEMENT_LOCAL_NAME: 
    6263                rule.target = TargetReader.parse(childElem) 
     64             
     65            else: 
     66                raise XMLParseError("XACML Rule child element name %r not " 
     67                                    "recognised" % localName)                 
    6368                 
    6469        return rule 
Note: See TracChangeset for help on using the changeset viewer.