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
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
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
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')
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
def __repr__(self): r = AccountBase.__repr__(self)[:-1] r += ', ' r += 'enabled' if self.enabled else 'disabled' return r + '>'
def __repr__(self): return AccountBase._repr(self)