def __init__(self, name="", userhosts=[], perms=[], permits=[], status=[], email=[], d=None): if not d: LazyDict.__init__(self) self.name = name self.userhosts = userhosts self.perms = perms self.permits = permits self.status = status self.email = email else: LazyDict.__init__(self, d)
def __init__(self, botname='default', i=0, nick="", ttime=time.time(), txt="", \ printto=None, d={}): if not d: LazyDict.__init__(self) self.botname = botname self.idnr = i self.nick = nick self.time = ttime self.txt = txt self.printto = printto or "" else: LazyDict.__init__(self, d)
def __init__(self, name="", url="", itemslist=[], watchchannels=[], \ sleeptime=30*60, running=0, d={}): if not d: LazyDict.__init__(self) self['name'] = name self['url'] = url self['itemslist'] = list(itemslist) self['watchchannels'] = list(watchchannels) self['sleeptime'] = int(sleeptime) self['running'] = int(running) self['stoprunning'] = 0 self['botname'] = None else: LazyDict.__init__(self, d)
def __init__(self, default={}): # called parent constructor Persist.__init__(self) # if data not initialised set it to a LazyDict if not self.data: self.data = LazyDict(default)