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)
            self.connected_accounts[:] = conn
 
        if new != StateMixin.Statuses.OFFLINE:
            if src in self.cancellers:
                self.cancellers.pop(src).cancel()
                x.stop()
 
        if new == StateMixin.Statuses.OFFLINE:
            self._on_account_offline(src)
            self._check_all_offline()
    def state_desc(self, acct):
        if acct.state == StateMixin.Statuses.ONLINE:
            return ''
 
        if acct.state == StateMixin.Statuses.OFFLINE:

src/d/i/digsby-HEAD/digsby/src/imaccount.py   digsby(Download)
    def _get_state(self):
        return try_this(lambda: self.connection.state, StateMixin.Statuses.OFFLINE)
 
    def _set_state(self, val):
        if self.connection is not None:
            self.reconnected_callbacks.call_and_clear(conn)
 
        elif new == StateMixin.Statuses.OFFLINE:
            rsn = self.connection.offline_reason
            self.connection = None

src/d/i/digsby-HEAD/digsby/src/digsbyprofile.py   digsby(Download)
    def state(self):
        return try_this(lambda: self.connection.state, StateMixin.Statuses.OFFLINE)
 
    def when_active(self, callback):
        if not hasattr(callback, '__call__'):