def recomputeRegexAndMove(self, message):
        """Move the requested message to the selected symbol
        which's regex is recomputed"""
        self.vocabularyController.moveMessage(message, self.targetSymbol)

        self._view.destroy()
        sequence_controller = SequenceAlignmentController(self.vocabularyController, [self.targetSymbol.getField()])
        sequence_controller.run()
示例#2
0
    def recomputeRegexAndMove(self, message):
        """Move the requested message to the selected symbol
        which's regex is recomputed"""
        self.vocabularyController.moveMessage(message, self.targetSymbol)

        self._view.destroy()
        sequence_controller = SequenceAlignmentController(
            self.vocabularyController, [self.targetSymbol.getField()])
        sequence_controller.run()
 def sequenceAlignment_activate_cb(self, action):
     if self.getCurrentProject() is None:
         NetzobErrorMessage(_("No project selected."))
         return
     layers = self.view.getCheckedLayerList()
     if layers == []:
         NetzobErrorMessage(_("No layer selected."))
         return
     sequence_controller = SequenceAlignmentController(self, layers, doUpgma=True)
     sequence_controller.run()
示例#4
0
 def sequenceAlignment_activate_cb(self, action):
     if self.getCurrentProject() is None:
         NetzobErrorMessage(_("No project selected."))
         return
     layers = self.view.getCheckedLayerList()
     if layers == []:
         NetzobErrorMessage(_("No layer selected."))
         return
     sequence_controller = SequenceAlignmentController(self,
                                                       layers,
                                                       doUpgma=True)
     sequence_controller.run()
 def sequenceAlignment_cb(self, action):
     sequence_controller = SequenceAlignmentController(self.vocabularyController, [self.layers[0]])
     sequence_controller.run()
示例#6
0
 def sequenceAlignment_cb(self, action):
     sequence_controller = SequenceAlignmentController(
         self.vocabularyController, [self.layers[0]])
     sequence_controller.run()