- Timestamp:
- 18/03/10 13:57:03 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/policyreader.py
r6746 r6750 23 23 class PolicyReader(ETreeAbstractReader): 24 24 """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 26 29 def __call__(self, obj): 27 30 """Parse policy object""" 28 31 elem = super(PolicyReader, self)._parse(obj) 29 32 30 policy = Policy() 31 cls = Policy 33 # XACML type to instantiate 34 cls = PolicyReader.TYPE 35 policy = cls() 32 36 33 37 localName = QName.getLocalPart(elem.tag)
Note: See TracChangeset
for help on using the changeset viewer.