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._check_all_offline()
 
        if new == StateMixin.Statuses.ONLINE:
            src.error_count = 0
 
                                def set_online(*a, **k):
                                    src.connection.setnotify('state', StateMixin.Statuses.ONLINE)
                                src.on_connect = set_online
                            if getattr(src, 'connection', None) is None:
                                src._reconnect()
    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)
        new = conn.state if conn is not None else None
 
        if new == StateMixin.Statuses.ONLINE:
            if hasattr(self, '_connect_args'):
                del self._connect_args