Ignore:
Timestamp:
19/03/10 11:53:21 (10 years ago)
Author:
pjkersha
Message:

Started adding parsing for Condition and Apply types.

File:
1 edited

Legend:

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

    r6746 r6753  
    1515class Condition(PolicyComponent): 
    1616    """XACML Rule Condition""" 
     17    ELEMENT_LOCAL_NAME = 'Condition' 
     18    APPLY_ELEMENT_LOCAL_NAME = 'Apply' 
     19     
    1720    __slots__ = ('__expression', ) 
    1821     
    1922    def __init__(self): 
     23        super(Condition, self).__init__() 
    2024        self.__expression = None 
    2125         
     
    2630    @expression.setter 
    2731    def expression(self, value): 
     32        if not isinstance(value, Expression): 
     33            raise TypeError('Expecting Expression or Expression derived type ' 
     34                            'for "expression" attribute; got %r' % 
     35                            type(value)) 
    2836        self.__expression = value 
Note: See TracChangeset for help on using the changeset viewer.