예제 #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
파일: imaccount.py 프로젝트: sgricci/digsby
    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 + '>'