Ignore:
Timestamp:
14/04/10 15:45:01 (11 years ago)
Author:
pjkersha
Message:

Working <Condition> statement processing. This means that policy rules can now be evaluated. The rule combining algorithm handling needs to be implemented to complete the PDP processing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/__init__.py

    r6804 r6805  
    1616log = logging.getLogger(__name__) 
    1717 
    18 from ndg.xacml.core.attributevalue import AttributeValue 
     18from ndg.xacml.core.attributevalue import (AttributeValue,  
     19                                           AttributeValueClassFactory) 
    1920from ndg.xacml.utils import VettedDict, _isIterable 
    2021from ndg.xacml.utils.factory import callModuleObject 
     
    349350                                  for n in functionSuffixParts if n]) 
    350351         
     352        attributeValueClassFactory = AttributeValueClassFactory() 
     353         
    351354        for identifier in self.__class__.FUNCTION_NAMES:             
    352355            # Extract the function name and the type portion of the function 
     
    356359             
    357360            typeName = typePart[0].upper() + typePart[1:] 
    358             _type = AttributeValue.TYPE_MAP.get(typeName) 
     361            typeURI = AttributeValue.IDENTIFIER_PREFIX + typePart 
     362            _type = attributeValueClassFactory(typeURI) 
    359363            if _type is None: 
    360364                raise TypeError('No AttributeValue.TYPE_MAP entry for %r type' % 
Note: See TracChangeset for help on using the changeset viewer.