Ignore:
Timestamp:
18/03/10 13:57:03 (10 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/targetreader.py

    r6747 r6750  
    2121 
    2222class TargetReader(ETreeAbstractReader): 
    23     """ElementTree based parser for XACML Target elements""" 
     23    """ElementTree based parser for XACML Target elements 
     24     
     25    @cvar TYPE: XACML type to instantiate from parsed object 
     26    @type string: type""" 
     27    TYPE = Target 
    2428     
    2529    def __call__(self, obj): 
    2630        elem = super(TargetReader, self)._parse(obj) 
    2731         
    28         target = Target() 
    29         cls = Target 
     32        cls = TargetReader.TYPE 
     33        target = cls() 
    3034         
    3135        localName = QName.getLocalPart(elem.tag) 
Note: See TracChangeset for help on using the changeset viewer.