Ignore:
Timestamp:
14/04/10 09:45:50 (9 years ago)
Author:
pjkersha
Message:

Working class factories for each function module. Function class evaluate methods need to be refactored to accept *AttributeValue? types

File:
1 edited

Legend:

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

    r6797 r6804  
    8686                                 'to retrieve the required function') 
    8787             
    88         # Get function for this <Apply> statement          
    89         func = functionMap.get(self.functionId) 
    90         if func is NotImplemented: 
    91             raise UnsupportedStdFunctionError('No match function ' 
     88        # Get function class for this <Apply> statement          
     89        functionClass = functionMap.get(self.functionId) 
     90        if functionClass is NotImplemented: 
     91            raise UnsupportedStdFunctionError('No match function class ' 
    9292                                              'implemented for MatchId="%s"' %  
    9393                                              self.functionId) 
    94         elif func is None: 
     94        elif functionClass is None: 
    9595            raise UnsupportedFunctionError('<Apply> function namespace %r is ' 
    9696                                           'not recognised' %  
    9797                                           self.functionId)  
    9898             
    99         self.__function = func 
     99        self.__function = functionClass() 
    100100     
    101101    @property 
Note: See TracChangeset for help on using the changeset viewer.