Esempio n. 1
0
 def _add_job(self, job):
     with self._jobs_condition:
         self._jobs[job.id] = job
     with self._clients_condition:
         clients = self._clients.copy()
     job_info = job.get_info()
     _Client.job_added(clients, job_info)
Esempio n. 2
0
 def _add_job(self, job):
     with self._jobs_condition:
         self._jobs[job.id] = job
     with self._clients_condition:
         clients = self._clients.copy()
     job_info = job.get_info()
     _Client.job_added(clients, job_info)
Esempio n. 3
0
 def print(self, machine_name, input_file, extruder_name,
           gcode_processor_name, has_start_end, material_name, slicer_name,
           slicer_settings):
     slicer_settings = conveyor.domain.SlicerConfiguration.fromdict(
         slicer_settings)
     job = self._server.print(machine_name, input_file, extruder_name,
                              gcode_processor_name, has_start_end,
                              material_name, slicer_name, slicer_settings)
     dct = job.get_info().to_dict()
     return dct
Esempio n. 4
0
 def slice(self, driver_name, profile_name, input_file, output_file,
           add_start_end, extruder_name, gcode_processor_name,
           material_name, slicer_name, slicer_settings):
     slicer_settings = conveyor.domain.SlicerConfiguration.fromdict(
         slicer_settings)
     job = self._server.slice(driver_name, profile_name, input_file,
                              output_file, add_start_end, extruder_name,
                              gcode_processor_name, material_name,
                              slicer_name, slicer_settings)
     dct = job.get_info().to_dict()
     return dct
Esempio n. 5
0
 def slice(
         self, driver_name, profile_name, input_file, output_file,
         add_start_end, extruder_name, gcode_processor_name,
         material_name, slicer_name, slicer_settings):
     slicer_settings = conveyor.domain.SlicerConfiguration.fromdict(
         slicer_settings)
     job = self._server.slice(
         driver_name, profile_name, input_file, output_file, add_start_end,
         extruder_name, gcode_processor_name, material_name, slicer_name,
         slicer_settings)
     dct = job.get_info().to_dict()
     return dct
Esempio n. 6
0
 def print(
         self, machine_name, input_file, extruder_name,
         gcode_processor_name, has_start_end, material_name, slicer_name,
         slicer_settings):
     slicer_settings = conveyor.domain.SlicerConfiguration.fromdict(
         slicer_settings)
     job = self._server.print(
         machine_name, input_file, extruder_name,
         gcode_processor_name, has_start_end, material_name, slicer_name,
         slicer_settings)
     dct = job.get_info().to_dict()
     return dct
Esempio n. 7
0
 def _job_changed(self, job):
     job_info = job.get_info()
     with self._clients_condition:
         clients = self._clients.copy()
     _Client.job_changed(clients, job_info)
Esempio n. 8
0
 def _job_changed(self, job):
     job_info = job.get_info()
     with self._clients_condition:
         clients = self._clients.copy()
     _Client.job_changed(clients, job_info)