-class WarningConfig(Exception):
- """ Warning bound to a misconfiguration. """
- def __init__(self, msg):
- # WIP WIP WIP WIP WIP WIP WIP
- def sub_path(g):
- menu_xml_id = g.group(1)
-
- return '(group to convert: '+menu_xml_id+')'
-
- def sub_path(g):
- menu_xml_id = g.group(1)
+class RedirectWarning(Exception):
+ """ Warning with a possibility to redirect the user instead of simply
+ diplaying the warning message.