Ejemplo n.º 1
0
 def target_on_discovery(self, params):
     from rcmp_robotics_data import execute_robotics_data_query
     return execute_robotics_data_query(self.get_pi, params, err_reason="The discovery failed")
Ejemplo n.º 2
0
 def target_on_read_list(self, params):
     from rcmp_robotics_data import execute_robotics_data_query
     return execute_robotics_data_query(self.get_pi_list, params,
                                        err_reason="The read of the list of %ss failed" % self._who)
Ejemplo n.º 3
0
 def target_on_automatic_provisioning(self, params):
     from rcmp_robotics_data import execute_robotics_data_query
     return execute_robotics_data_query(self.create_pi, params,
                                        err_reason="The provisioning of %s with name '%s' failed" %
                                                   (self._who, params[self.PI_NAME_KEY]))
Ejemplo n.º 4
0
 def target_on_rollback_provisioning(self, params):
     from rcmp_robotics_data import execute_robotics_data_query
     return execute_robotics_data_query(self.delete_pi, params,
                                        err_reason="The provisioning rollback of %s with name %s failed" %
                                                   (self._who, params[self.PI_NAME_KEY]))
Ejemplo n.º 5
0
 def target_on_manual_provisioning(self, params):
     from rcmp_robotics_data import execute_robotics_data_query
     return execute_robotics_data_query(self.create_pi_name, params,
                                        err_reason="The manual provisioning of %s with name %s failed" %
                                                   (self._who, params[self.PI_NAME_KEY]))