Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/d/i/digsby-HEAD/digsby/src/AccountManager.py   digsby(Download)
 
        conditions = (old       == new,                          # no change...this function shouldn't have been called in the first place
                      new       == StateMixin.Reasons.NONE,      # normal offline state, doesn't matter
                      )
 
    def cancel_reconnect(self, acct):
        acct.disconnect()
        acct.setnotify('offline_reason',StateMixin.Reasons.NONE)
        timer = self.reconnect_timers.pop(acct, None)
        if timer:
            else:
                return StateMixin.Reasons.CONN_FAIL
        elif acct.offline_reason == StateMixin.Reasons.NONE:
            return ''
 
        diag = hooks.first('digsby.services.edit', parent = parent, sp = sp, impl="digsby_service_editor")
        old_offline = acct.offline_reason
        acct.offline_reason = StateMixin.Reasons.NONE
 
        info = None

src/d/i/digsby-HEAD/digsby/src/imaccount.py   digsby(Download)
        self.connection = None
 
        self.offline_reason = StateMixin.Reasons.NONE
        self.error_acked = True
 
            return
 
        if self.offline_reason != StateMixin.Reasons.NONE:
            self.setnotifyif('error_acked', False)
        else:

src/d/i/digsby-HEAD/digsby/src/digsbyprofile.py   digsby(Download)
 
        self.error_count = 0
        self.offline_reason = StateMixin.Reasons.NONE
        self.account_manager = AccountManager(profile = self)
        self.last_hiber_req = None