@staticmethod
    def parse_code(code):

        data = {"label": code}

        pattern = current.deployment_settings.get_dvr_id_code_pattern()
        if pattern and code:
            import re
            pattern = re.compile(pattern)
            m = pattern.match(code)
            if m:
                data.update(m.groupdict())

        return data

    # -------------------------------------------------------------------------
Add a new enum type
dataset/ETHPy150Open sahana/eden/modules/s3db/dvr.py/DVRRegisterCaseEvent.parse_code--crossover with--dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/AddEnum