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