Пример #1
0
 def startForcePartitioning(self, delimiter, format):
     if len(self.fields) > 0:
         self.log.debug("Start to force partitioning the selected fields")
         try:
             (yield ThreadedTask(self.forcePartitioning, delimiter, format))
         except TaskError, e:
             self.log.error("Error while proceeding to the force partitioning of fields: {0}".format(str(e)))
Пример #2
0
 def startSimplePartitioning(self, unitSize):
     if len(self.fields) > 0:
         self.log.debug("Start to simple partitioning the selected fields")
         try:
             (yield ThreadedTask(self.simplePartitioning, unitSize))
         except TaskError, e:
             self.log.error("Error while proceeding to the simple partitioning of fields: {0}".format(str(e)))
Пример #3
0
 def startFindSizeField(self, sizeFieldIdentifier, symbols, dialog, savedEncapsulationLevel):
     results = []
     self.currentExecutionOfFindSizeFieldHasFinished = False
     try:
         (yield ThreadedTask(sizeFieldIdentifier.search, symbols, results))
     except TaskError, e:
         self.log.error("Error while proceeding to the size field identification: {0}".format(str(e)))
Пример #4
0
 def startNewSearch(self, text, format):
     """Start a search process with the provided text and format"""
     try:
         (yield ThreadedTask(self.search, text, format))
     except TaskError, e:
         self.log.error(
             "Error while proceeding to the search process: {0}".format(
                 str(e)))
Пример #5
0
 def startArbitrarySearch(self, searchTasks):
     """Starts an arbitrary search"""
     try:
         (yield ThreadedTask(self.arbitrarySearch, searchTasks))
     except TaskError, e:
         self.log.error(
             "Error while proceeding to the arbitrary search process: {0}".
             format(str(e)))
 def startEnvDepsSearch(self):
     if len(self.symbols) > 0:
         try:
             (yield ThreadedTask(self.envDepsSearch))
         except TaskError, e:
             self.log.error(
                 "Error while proceeding to the environmental search dependencies on symbols: {0}"
                 .format(str(e)))
 def startSequenceAlignment(self, unitSize):
     """Definition of a JOB, which executes the alignment process
     @type unitSize: int
     @var unitSize: the unit size to consider when aligning
     """
     try:
         (yield ThreadedTask(self.alignmentSolution.alignFields, self.fields))
     except TaskError, e:
         self.log.error("Error while proceeding to the alignment: {0}".format(str(e)))
 def startReset(self):
     """Start the reset operation by creating
     a dedicated thread
     """
     if len(self.fields) > 0:
         self.log.debug("Start to reset the selected fields")
         try:
             (yield ThreadedTask(self.reset))
         except TaskError, e:
             self.log.error("Error while proceeding to the reseting of fields: {0}".format(str(e)))
    def startImportMessages(self, selectedMessages):
        """Method considered as the main Job to execute to import
        selected messages"""

        if self.model is not None:
            self.model.status_cb = self.updateImportProgessBar
            self.model.end_cb = self.requestConfirmation

        (yield ThreadedTask(self.doImportMessages, selectedMessages))

        self.view.dialog.destroy()
Пример #10
0
 def startSmooth(self):
     """Start the smooth operation by creating
     a dedicated thread
     @var fields: the list of fields that should be smoothed
     """
     if len(self.fields) > 0:
         self.log.debug("Start to smooth the selected fields")
         try:
             (yield ThreadedTask(self.smooth))
         except TaskError, e:
             self.log.error(
                 "Error while proceeding to the smoothing of fields: {0}".
                 format(str(e)))
    def _startKeyValidation(self):
        try:
            (yield ThreadedTask(self._keyValidationTask))

            if not self.validKey:
                dialog = Gtk.MessageDialog(
                    self.view.workspaceConfigurationDialog,
                    Gtk.DialogFlags.MODAL
                    | Gtk.DialogFlags.DESTROY_WITH_PARENT,
                    Gtk.MessageType.WARNING, Gtk.ButtonsType.OK,
                    _("The specified key is invalid!"))
                dialog.run()
                dialog.destroy()

        except TaskError, e:
            self.log.error("Error while validating the API key: {0}".format(
                str(e)))
Пример #12
0
 def startInferer(self):
     (yield ThreadedTask(self.inferer.infer))
     self.computedAutomaton = self.inferer.getInferedAutomaton()
     self.finish = True