Ignore:
Timestamp:
18/03/10 13:57:03 (9 years ago)
Author:
pjkersha
Message:

Parsing functionality near complete for rule1.xml

File:
1 edited

Legend:

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

    r6746 r6750  
    2323class PolicyReader(ETreeAbstractReader): 
    2424    """Parse a Policy Document using ElementTree 
    25     """ 
     25    @cvar TYPE: XACML type to instantiate from parsed object 
     26    @type string: type""" 
     27    TYPE = Policy 
     28     
    2629    def __call__(self, obj): 
    2730        """Parse policy object""" 
    2831        elem = super(PolicyReader, self)._parse(obj) 
    2932         
    30         policy = Policy() 
    31         cls = Policy 
     33        # XACML type to instantiate 
     34        cls = PolicyReader.TYPE 
     35        policy = cls() 
    3236         
    3337        localName = QName.getLocalPart(elem.tag) 
Note: See TracChangeset for help on using the changeset viewer.