def __init__(self, topic, events = [], description = '', icon_skinpath = None): autoassign(self, locals()) self.name = topic if self.icon_skinpath is None: self.icon_skinpath = 'AppDefaults.Notificationicons.%s' % self.topic.split('.', 1)[0] list.__init__(self, [EventEntry(event) for event in events])
def update(self, email): if isinstance(email, dict): attrs = email else: attrs = vars(email) autoassign(self, dict((k, v) for k, v in attrs.iteritems() if v is not None))
def __init__(self, topic, events=[], description='', icon_skinpath=None): autoassign(self, locals()) self.name = topic if self.icon_skinpath is None: self.icon_skinpath = 'AppDefaults.Notificationicons.%s' % self.topic.split( '.', 1)[0] list.__init__(self, [EventEntry(event) for event in events])
def __init__(self, title, status, message, exceptions = None, editable = True, format = None, edit_toggle = True, **k): ObservableSlotsSavable.__init__(self) if exceptions is None: exceptions = {} autoassign(self, locals()) self.check_types() self.cap_title_len()
def __init__(self, protocol, buddy, name, url): IncomingFileTransfer.__init__(self) autoassign(self, locals()) self.buddy = buddy self.numfiles = 1 self.name = name self.bytes_written = 0 self.size = 0 # TODO http head to find size self.chunker = None
def __init__( self, id=None, fromname=None, fromemail=None, sendtime=None, subject=None, content=None, attachments=None, labels=None, ): autoassign(self, locals())
def __init__(self, **k): if not hasattr(self, 'nonserialize_attributes'): self.nonserialize_attributes = [] if not hasattr(self, 'serialize_attributes'): self.serialize_attributes = [] util.autoassign(self, k) selfvars = vars(self) typevars = vars(type(self)) for k in typevars: if k in selfvars and selfvars.get(k, None) == typevars.get(k, None): setattr(self, k, None)
def __init__(self, **k): if not hasattr(self, 'nonserialize_attributes'): self.nonserialize_attributes = [] if not hasattr(self, 'serialize_attributes'): self.serialize_attributes = [] util.autoassign(self, k) selfvars = vars(self) typevars = vars(type(self)) for k in typevars: if k in selfvars and selfvars.get(k, None) == typevars.get( k, None): setattr(self, k, None)
def __init__(self, id, bz2path): autoassign(self, locals()) self.cwl_files = []
def __init__(self, id, domain, policyref): id = 'RST%d'%id util.autoassign(self, locals()) self.__gotdata = False self._received = None
def __init__(self, **attrs): FileTransfer.__init__(self) autoassign(self, attrs)
def __init__(self, id, domain, policyref): id = 'RST%d' % id util.autoassign(self, locals()) self.__gotdata = False self._received = None
def __init__(self, id, name_english, name_native): autoassign(self, locals())
def login(self, host, port, ssl, user, password): autoassign(self, locals())