Ignore:
Timestamp:
24/03/10 14:21:17 (10 years ago)
Author:
pjkersha
Message:

Added Context Handler and Attribute classes.

File:
1 edited

Legend:

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

    r6750 r6770  
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    1111__revision__ = "$Id: $" 
    12 from ndg.xacml.core import PolicyComponent 
     12from ndg.xacml.core import XacmlCoreBase 
    1313from ndg.xacml.core.attributedesignator import AttributeDesignator 
    1414from ndg.xacml.core.attributeselector import AttributeSelector 
     
    1616 
    1717 
    18 class MatchBase(PolicyComponent): 
     18class MatchBase(XacmlCoreBase): 
    1919    ELEMENT_LOCAL_NAME = None 
    2020    MATCH_ID_ATTRIB_NAME = 'MatchId' 
     
    3737        self.__matchId = None 
    3838 
    39     def _get_attributeValue(self): 
    40         return self.__attributeValue 
    41  
    42     def _set_attributeValue(self, value): 
    43         if not isinstance(value, AttributeValue): 
    44             raise TypeError('Expecting %r type for "attributeValue" ' 
    45                             'attribute; got %r' % (AttributeValue, type(value))) 
    46              
    47         self.__attributeValue = value 
    48  
    49     attributeValue = property(_get_attributeValue, _set_attributeValue, None,  
    50                               "attribute value") 
    5139 
    5240    @property 
Note: See TracChangeset for help on using the changeset viewer.