Ignore:
Timestamp:
12/04/10 16:40:24 (10 years ago)
Author:
pjkersha
Message:

Fixed AttributeValueReader? to handler attribute value derived types correctly.

File:
1 edited

Legend:

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

    r6797 r6802  
    4444    def __init__(self): 
    4545        super(AttributeValue, self).__init__() 
     46        if self.__class__.TYPE is None: 
     47            raise TypeError('TYPE class variable must be set to a valid type ' 
     48                            'in a derived class') 
     49             
    4650        self.__value = None 
    4751            
     
    119123     
    120124     
    121 class AttributeValueFactory(object): 
     125class AttributeValueClassFactory(object): 
    122126    """Create AttributeValue types based on the XML namespace identifier 
    123127     
Note: See TracChangeset for help on using the changeset viewer.