示例#1
0
    def __init__(self, enabled=True, **options):
        AccountBase.__init__(self, **options)
        UpdateMixin.__init__(self, **options)
        FromNetMixin.__init__(self, **options)

        self.enabled = enabled
        self._dirty_error = True  # The next error is new
示例#2
0
    def __init__(self, enabled = True,  **options):
        AccountBase.__init__(self, **options)
        UpdateMixin.__init__(self, **options)
        FromNetMixin.__init__(self, **options)

        self.enabled = enabled
        self._dirty_error = True # The next error is new
示例#3
0
    def __init__(self, enabled = True, updateNow = True, **options):

        AccountBase.__init__(self, **options)
        UpdateMixin.__init__(self, **options)
        FromNetMixin.__init__(self, **options)

        self.emails = ObservableList()
        self.count = 0
        self.seen = set()
        self._dirty_error = True # The next error is new.

        log.info('Created EmailAccount: %r. Setting enabled to %r', self, enabled)

        self.enabled = enabled
示例#4
0
    def __init__(self, name, password=None, **options):
        AccountBase.__init__(self, name, password, **options)
        ChatProtocol.__init__(self)

        # Make options local to the account
        self.update_with_defaults(options)

        # Connection attribute: the Protocol subclass which is this account's active connection
        # to the server.
        self.connection = None

        self.offline_reason = StateMixin.Reasons.NONE
        self.error_acked = True

        self.add_observer(self.offline_changed, 'offline_reason')
示例#5
0
    def __init__(self, enabled=True, updateNow=True, **options):

        AccountBase.__init__(self, **options)
        UpdateMixin.__init__(self, **options)
        FromNetMixin.__init__(self, **options)

        self.emails = ObservableList()
        self.count = 0
        self.seen = set()
        self._dirty_error = True  # The next error is new.

        log.info('Created EmailAccount: %r. Setting enabled to %r', self,
                 enabled)

        self.enabled = enabled
示例#6
0
 def __repr__(self):
     r = AccountBase.__repr__(self)[:-1]
     r += ', '
     r += 'enabled' if self.enabled else 'disabled'
     return r + '>'
示例#7
0
 def __repr__(self):
     return AccountBase._repr(self)
示例#8
0
 def __repr__(self):
     r = AccountBase.__repr__(self)[:-1]
     r += ', '
     r += 'enabled' if self.enabled else 'disabled'
     return r + '>'