Ignore:
Timestamp:
22/03/10 08:30:50 (11 years ago)
Author:
pjkersha
Message:

Parsing complete for all XACML example rules but minus Obligations implementation. This is probably not needed for NDG. Added original NDG test policy to test parsing with this.

File:
1 edited

Legend:

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

    r6752 r6754  
    1212from ndg.xacml.parsers import XMLParseError 
    1313from ndg.xacml.core.policy import Policy 
     14from ndg.xacml.core.policydefaults import PolicyDefaults 
    1415from ndg.xacml.core.variabledefinition import VariableDefinition 
    1516from ndg.xacml.core.rule import Rule 
     
    6869                     
    6970            elif localName == xacmlType.POLICY_DEFAULTS_LOCAL_NAME: 
    70                 raise NotImplementedError() 
     71                PolicyDefaultsReader = ReaderFactory.getReader(PolicyDefaults) 
     72                policy.policyDefaults = PolicyDefaultsReader.parse(childElem) 
    7173                    
    7274            elif localName == Target.ELEMENT_LOCAL_NAME: 
     
    9092                    
    9193            elif localName == xacmlType.OBLIGATIONS_LOCAL_NAME: 
    92                 raise NotImplementedError() 
     94                raise NotImplementedError('Parsing for Obligations element is ' 
     95                                          'not implemented') 
    9396             
    9497            else: 
Note: See TracChangeset for help on using the changeset viewer.