def __init__(self, ref, title, id_): self.ref = None self._title = None if title: self._title = unicode(title) if ref: self.ref = unicode(ref) self.id_ = id_ MutableObject.__init__(self)
def __setstate__(self, state): MutableObject.__setstate__(self, state) self.__constructed()
def __init__(self, type_tokens=None): self.input_tokens = type_tokens or [] self.comment = None self.extension_attributes = MutableDict() self.__constructed() MutableObject.__init__(self)