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

    r6804 r6805  
    5151             
    5252        self.__value = None 
    53             
     53 
     54    def __repr__(self): 
     55        return "%s = %r " % (super(AttributeValue, self).__repr__(), 
     56                             self.__value) 
     57     
    5458    def _get_value(self): 
    5559        return self.__value 
     
    6670     
    6771    def evaluate(self, context): 
    68         """Evaluate the result of the expression in a condition 
     72        """Evaluate the result of the expression in a condition.  In the case of 
     73        an attribute value it's simply itself 
     74         
    6975        @param context: the request context 
    7076        @type context: ndg.xacml.core.context.request.Request 
    71         @return: attribute value(s) resulting from execution of this expression 
    72         in a condition 
    73         @rtype: AttributeValue/NoneType   
     77        @return: this attribute value 
     78        @rtype: AttributeValue   
    7479        """  
    75         return self.__value 
     80        return self 
    7681 
    7782 
Note: See TracChangeset for help on using the changeset viewer.