Ignore:
Timestamp:
01/11/10 16:30:22 (10 years ago)
Author:
pjkersha
Message:

Working and tested version with functionality for adding custom attribute value types and functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/ndg_xacml/ndg/xacml/parsers/etree/policyreader.py

    r7109 r7682  
    9898            elif localName == Rule.ELEMENT_LOCAL_NAME: 
    9999                RuleReader = ReaderFactory.getReader(Rule) 
    100                 policy.rules.append(RuleReader.parse(childElem)) 
     100                rule = RuleReader.parse(childElem) 
     101                if rule.id in [_rule.id for _rule in policy.rules]: 
     102                    raise XMLParseError("Duplicate Rule ID %r found" % rule.id) 
     103                     
     104                policy.rules.append(rule) 
    101105                    
    102106            elif localName == xacmlType.OBLIGATIONS_LOCAL_NAME: 
Note: See TracChangeset for help on using the changeset viewer.