コード例 #1
0
ファイル: network.py プロジェクト: AlexUlrich/digsby
    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
ファイル: emailaccount.py プロジェクト: AlexUlrich/digsby
    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
ファイル: emailaccount.py プロジェクト: sgricci/digsby
    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