示例#1
0
文件: links.py 项目: gdesmott/hotdoc
    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)
示例#2
0
    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)
示例#3
0
 def __setstate__(self, state):
     MutableObject.__setstate__(self, state)
     self.__constructed()
示例#4
0
 def __init__(self, type_tokens=None):
     self.input_tokens = type_tokens or []
     self.comment = None
     self.extension_attributes = MutableDict()
     self.__constructed()
     MutableObject.__init__(self)