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/subjectreader.py

    r6747 r6750  
    1919class SubjectReader(ETreeAbstractReader): 
    2020    '''ElementTree based XACML Rule parser 
     21    @cvar TYPE: XACML type to instantiate from parsed object 
     22    @type string: type 
    2123    ''' 
     24    TYPE = Subject 
     25 
    2226    def __call__(self, obj): 
    2327        """Parse subject object""" 
    2428        elem = super(SubjectReader, self)._parse(obj) 
    2529         
    26         subject = Subject() 
    27         cls = Subject 
     30        cls = SubjectReader.TYPE 
     31        subject = cls() 
    2832         
    2933        localName = QName.getLocalPart(elem.tag) 
Note: See TracChangeset for help on using the changeset viewer.