Пример #1
0
    def ready(self, ioloopstart=1):
        """ to call at the end of the __init__ of classes that inherits of XplPlugin
        """
        ### First, Do only the xPL related tasks

        # activate xpl hbeat
        if self.enable_hbeat_called == True:
            self.log.error(u"in ready() : enable_hbeat() function already called : the plugin may not be fully converted to the 0.4+ Domogik format")
        else:
            self.enable_hbeat()

        # send the status for the xpl hbeat
        self.myxpl.update_status(2)

        ### finally call the function from the Plugin class to do the common things
        # this is called as the end ad the MQ IOLoop is a blocking call
        Plugin.ready(self, ioloopstart)
Пример #2
0
    def ready(self, ioloopstart=1):
        """ to call at the end of the __init__ of classes that inherits of XplPlugin
        """
        ### First, Do only the xPL related tasks

        # activate xpl hbeat
        if self.enable_hbeat_called == True:
            self.log.error(
                u"in ready() : enable_hbeat() function already called : the plugin may not be fully converted to the 0.4+ Domogik format"
            )
        else:
            self.enable_hbeat()

        # send the status for the xpl hbeat
        self.myxpl.update_status(2)

        ### finally call the function from the Plugin class to do the common things
        # this is called as the end ad the MQ IOLoop is a blocking call
        Plugin.ready(self, ioloopstart)