Example #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)
Example #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)
Example #3
0
 def toStr(self, val, prefix):
     return "%s:%s\n" % (prefix, config.lt2ti(val).name)
Example #4
0
 def toStr(self, val, prefix):
     return "%s:%s\n" % (prefix, config.lt2ti(val).name)