- Timestamp:
- 16/03/10 16:40:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/NDG_XACML/ndg/xacml/core/attribute.py
r6746 r6747 10 10 __contact__ = "Philip.Kershaw@stfc.ac.uk" 11 11 __revision__ = "$Id: $" 12 from ndg.xacml.core import PolicyComponent 12 from ndg.xacml.core.expression import Expression 13 13 14 14 15 class AttributeValue(PolicyComponent): 15 class AttributeValue(Expression): 16 16 """XACML Attribute Value type""" 17 __slots__ = ('__dataType', '__value') 17 ELEMENT_LOCAL_NAME = 'AttributeValue' 18 __slots__ = ('__value',) 18 19 19 20 def __init__(self): 20 s elf.__dataType = None21 super(AttributeValue, self).__init__() 21 22 self.__value = None 22 23 def _get_dataType(self): 24 return self.__dataType 25 26 def _set_dataType(self, value): 27 if not isinstance(value, basestring): 28 raise TypeError('Expecting %r type for "dataType" ' 29 'attribute; got %r' % (basestring, type(value))) 30 31 self.__dataType = value 32 33 dataType = property(_get_dataType, _set_dataType, None, 34 "attribute value data type") 35 23 36 24 def _get_value(self): 37 25 return self.__value … … 44 32 self.__value = value 45 33 46 value = property(_get_value, _set_value, None, " attributevalue")34 value = property(_get_value, _set_value, None, "expression value")
Note: See TracChangeset
for help on using the changeset viewer.