code: def setValue(self, value):
          
          if isinstance(value, Text):
              self.value = value
          else:
              self.value = Text(value)
          return self
docs: Set the attributes value
          @param value: The new value (may be None)
          @type value: basestring
          @return: self
          @rtype: L{Attribute}