def onEditSeries(self, event=None):

        if event.IsChecked():
            Publisher.sendMessage("selectEdit", event=event)
            logging.debug("is editing: %s" % self.isEdit)

            if not self.isEdit:
                self.onToggleEdit(False)
                #self.parent.addEdit()
        else:
            Publisher.sendMessage(("stopEdit"), event=event)
            #self.parent.stopEdit()

            # # Start editing right when a series is being edited

        #self.parent.getRecordService().toggle_record()
        #record_service.toggle_record()
        #logger.debug("Recording? %s" % record_service._record)

        event.Skip()
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/gui/mnuRibbon.py/mnuRibbon.onEditSeries/original