Logo Search packages:      
Sourcecode: magicicada version File versions  Download package

def magicicada::syncdaemon::SyncDaemon::on_sd_name_owner_changed (   self,
  now_active 
)

SyncDaemon name owner changed.

Definition at line 165 of file syncdaemon.py.

00165                                                   :
        """SyncDaemon name owner changed."""
        logger.info("SD Name Owner changed: %s", now_active)
        self.current_state._set(is_started=now_active)

        def set_status(name, description):
            """Set status after the name owner change."""
            d = dict(name=name, description=description, is_error=False,
                     is_connected=False, is_online=False, queues='',
                     connection='')
            self.current_state._set(**d)

        if now_active:
            set_status('STARTED', 'ubuntuone-client just started')
            self.on_started_callback()
            self._get_initial_data()
        else:
            set_status('STOPPED', 'ubuntuone-client is stopped')
            self.on_stopped_callback()

    def on_sd_status_changed(self, *status_data):


Generated by  Doxygen 1.6.0   Back to index