Changeset 6780
- Timestamp:
- 26/03/10 14:26:48 (11 years ago)
- Location:
- TI12-security/trunk/NDG_XACML/ndg/xacml
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/pdp.py
r6777 r6780 188 188 189 189 _attributeMatch = lambda requestChildAttribute: ( 190 matchFunc (matchAttributeValue,190 matchFunc.evaluate(matchAttributeValue, 191 191 requestChildAttribute.attributeValue.value) and 192 192 requestChildAttribute.attributeId == attributeId and … … 203 203 else: 204 204 _attributeMatch = lambda requestChildAttribute: ( 205 matchFunc (matchAttributeValue,206 requestChildAttribute.attributeValue.value)205 matchFunc.evaluate(matchAttributeValue, 206 requestChildAttribute.attributeValue.value) 207 207 ) 208 208 -
TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/__init__.py
r6777 r6780 341 341 'recognised: %r' % functionNs) 342 342 343 # Try i mporting the function class and loading it into the343 # Try instantiating the function class and loading it into the 344 344 # map 345 345 try: 346 self[functionNs] = callModuleObject(classPath) 346 matchFunctionObj = callModuleObject(classPath) 347 self[functionNs] = matchFunctionObj 347 348 except ImportError: 348 349 # No implementation exists - default to Abstract function -
TI12-security/trunk/NDG_XACML/ndg/xacml/test/test_context.py
r6779 r6780 1 #!/usr/bin/env python 1 2 """NDG XACML Context unit test package 2 3 -
TI12-security/trunk/NDG_XACML/ndg/xacml/test/test_matchfunctions.py
r6778 r6780 1 #!/usr/bin/env python 1 2 """NDG XACML functions unit test package 2 3 -
TI12-security/trunk/NDG_XACML/ndg/xacml/test/test_policypy
r6779 r6780 1 """NDG XACML unit test package 1 #!/usr/bin/env python 2 """NDG XACML Policy unit test package 2 3 3 4 NERC DataGrid Project … … 63 64 self.assert_(len(policy.rules[0].target.environments) == 0) 64 65 65 self.assert_(len(policy.rules[0].target.subjects[0].subjectMatches) == 1) 66 self.assert_(len(policy.rules[0].target.subjects[0 67 ].subjectMatches) == 1) 66 68 67 69 self.assert_(policy.rules[0].target.subjects[0].subjectMatches[0
Note: See TracChangeset
for help on using the changeset viewer.