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])
Exemple #2
0
    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))
Exemple #3
0
    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])
Exemple #4
0
    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))
Exemple #5
0
    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()
Exemple #6
0
    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
Exemple #7
0
    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
Exemple #8
0
 def __init__(
     self,
     id=None,
     fromname=None,
     fromemail=None,
     sendtime=None,
     subject=None,
     content=None,
     attachments=None,
     labels=None,
 ):
     autoassign(self, locals())
Exemple #9
0
 def __init__(
     self,
     id=None,
     fromname=None,
     fromemail=None,
     sendtime=None,
     subject=None,
     content=None,
     attachments=None,
     labels=None,
 ):
     autoassign(self, locals())
Exemple #10
0
    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)
Exemple #11
0
    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)
Exemple #12
0
 def __init__(self, id, bz2path):
     autoassign(self, locals())
     self.cwl_files = []
Exemple #13
0
 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)
Exemple #15
0
 def __init__(self, id, domain, policyref):
     id = 'RST%d' % id
     util.autoassign(self, locals())
     self.__gotdata = False
     self._received = None
Exemple #16
0
 def __init__(self, **attrs):
     FileTransfer.__init__(self)
     autoassign(self, attrs)
Exemple #17
0
 def __init__(self, id, bz2path):
     autoassign(self, locals())
     self.cwl_files = []
Exemple #18
0
 def __init__(self, id, name_english, name_native):
     autoassign(self, locals())
Exemple #19
0
 def __init__(self, id, name_english, name_native):
     autoassign(self, locals())
Exemple #20
0
 def login(self, host, port, ssl, user, password):
     autoassign(self, locals())