예제 #1
0
 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)
예제 #2
0
    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)
예제 #3
0
    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)
예제 #4
0
    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)
예제 #5
0
    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)
예제 #6
0
 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)