def onEditFlag(self, event):

        serviceManager = self.parent.getDBService()
        series_service = serviceManager.get_series_service()
        qualifierChoices = OrderedDict((x.code + '-' + x.description, x.id) for x in series_service.get_all_qualifiers()
                                       if x.code and x.description)
        add_flag = frmFlagValues(self.parent, series_service, qualifierChoices)
        val = add_flag.ShowModal()

        if val == wx.ID_OK:
            logger.debug("FLAG Value: %s, type: %s" % (val, type(val)))
            self.parent.getRecordService().flag(add_flag.GetValue())
        add_flag.Destroy()
        event.Skip()

    # ###################################
    #   Add Point
    # ###################################
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/gui/mnuRibbon.py/mnuRibbon.onEditFlag/original