def __init__(self, fmt=None, **config): base.InLoopPollText.__init__(self, **config) self.add_defaults(Clock.defaults) if fmt is not None: base.deprecated('fmt kwarg or positional argument is deprecated. ' 'Please use format.') self.format = fmt
def __init__(self, maildirPath=None, subFolders=None, separator=" ", **config): base.ThreadedPollText.__init__(self, **config) self.add_defaults(Maildir.defaults) if maildirPath is not None: base.deprecated("maildirPath is deprecated") self.maildirPath = maildirPath if subFolders is not None: base.deprecated("subFolders is deprecated") self.subFolders = subFolders if separator != " ": base.deprecated("separator is deprecated") self.separator = separator # if it looks like a list of strings then we just convert them # and use the name as the label if isinstance(self.subFolders[0], basestring): self.subFolders = [{ "path": folder, "label": folder } for folder in subFolders]
def __init__(self, maildirPath=None, subFolders=None, separator=" ", **config): base.ThreadedPollText.__init__(self, **config) self.add_defaults(Maildir.defaults) if maildirPath is not None: base.deprecated("maildirPath is deprecated") self.maildirPath = maildirPath if subFolders is not None: base.deprecated("subFolders is deprecated") self.subFolders = subFolders if separator != " ": base.deprecated("separator is deprecated") self.separator = separator # if it looks like a list of strings then we just convert them # and use the name as the label if isinstance(self.subFolders[0], basestring): self.subFolders = [ {"path": folder, "label": folder} for folder in subFolders ]
def __init__(self, settings=None, **config): if settings is not None: base.deprecated("parameter settings is deprecated") config.updateAll(settings) base._TextBox.__init__(self, **config) self.add_defaults(GmailChecker.defaults)