Ignore:
Timestamp:
14/04/10 16:39:48 (10 years ago)
Author:
pjkersha
Message:

Moving matching and rule evaluation code out of the PDP class and into the relevant classes they pertain to e.g. target matching moved to Target class match method and so on.

File:
1 edited

Legend:

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

    r6796 r6806  
    3939                            type(value)) 
    4040        self.__expression = value 
     41     
     42    def evaluate(self, context): 
     43        """Evaluate this rule condition 
     44        @param context: the request context 
     45        @type context: ndg.xacml.core.request.Request 
     46        @return: True/False status for whether the rule condition matched or 
     47        not 
     48        @rtype: bool 
     49        """ 
     50        result = self.expression.evaluate(context) 
     51         
     52        return result 
Note: See TracChangeset for help on using the changeset viewer.