예제 #1
0
    def __init__(self, lt):

        # pointer to TypeInfo
        self.ti = config.lt2ti(lt)

        if not self.__class__.cvars:
            v = self.__class__.cvars = mypickle.Vars()

            v.addBool("enabled", True, "Enabled")
            v.addList("items", [], "Items", mypickle.StrUnicodeVar("", "", ""))

            v.makeDicts()

        self.__class__.cvars.setDefaults(self)
예제 #2
0
    def __init__(self, lt):

        # pointer to TypeInfo
        self.ti = config.lt2ti(lt)

        if not self.__class__.cvars:
            v = self.__class__.cvars = mypickle.Vars()

            v.addBool("enabled", True, "Enabled")
            v.addList("items", [], "Items",
                      mypickle.StrUnicodeVar("", "", ""))

            v.makeDicts()

        self.__class__.cvars.setDefaults(self)
예제 #3
0
파일: mypickle.py 프로젝트: HuBandiT/trelby
 def toStr(self, val, prefix):
     return "%s:%s\n" % (prefix, config.lt2ti(val).name)
예제 #4
0
 def toStr(self, val, prefix):
     return "%s:%s\n" % (prefix, config.lt2ti(val).name)