Ignore:
Timestamp:
20/08/10 15:46:35 (10 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

  • important fix to ndg.xacml.core.rule.Rule.evaluate: return NotApplicable? where Target matches but Condition does not match
  • optimised ndg.xacml.core.functions.v1.at_least_one_member_of.AtLeastOneMemberOfBase? to use set and '&' operator for this function.
  • fix to ndg.xacml.core.functions.FunctionMap?.loadFunction to catch function namespace not recognised.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/attributevalue.py

    r7324 r7351  
    131131        return "%s = %r " % (super(AttributeValue, self).__repr__(), 
    132132                             self.__value) 
     133 
     134    def __eq__(self, attrVal): 
     135        """Check for equality by comparing the value attributes""" 
     136        if not isinstance(attrVal, self.__class__): 
     137            raise TypeError('Expecting %r type for "value" ' 
     138                            'attribute; got %r' % (self.__class__.TYPE,  
     139                                                   type(attrVal))) 
     140             
     141        return self.__value == attrVal.value 
    133142     
    134143    def _get_value(self): 
Note: See TracChangeset for help on using the changeset viewer.