comparison frontends/src/tools/xmlui.py @ 1501:cb1b0fe10415

frontends (xmlui): fixed a bug in xmlui resulting in a bad dialog creation (parameters were lost, including profile)
author Goffi <goffi@goffi.org>
date Thu, 27 Aug 2015 17:59:01 +0200
parents 039d96e131be
children d5e332055d9f
comparison
equal deleted inserted replaced
1500:c7c872a40e56 1501:cb1b0fe10415
686 686
687 class XMLUIDialog(XMLUIBase): 687 class XMLUIDialog(XMLUIBase):
688 dialog_factory = None 688 dialog_factory = None
689 689
690 def __init__(self, host, parsed_dom, title=None, flags=None, callback=None, profile=C.PROF_KEY_NONE): 690 def __init__(self, host, parsed_dom, title=None, flags=None, callback=None, profile=C.PROF_KEY_NONE):
691 super(XMLUIDialog, self).__init__(host, parsed_dom, title=None, flags=None, callback=callback, profile=C.PROF_KEY_NONE) 691 super(XMLUIDialog, self).__init__(host, parsed_dom, title=title, flags=flags, callback=callback, profile=profile)
692 top=parsed_dom.documentElement 692 top=parsed_dom.documentElement
693 dlg_elt = self._getChildNode(top, "dialog") 693 dlg_elt = self._getChildNode(top, "dialog")
694 if dlg_elt is None: 694 if dlg_elt is None:
695 raise ValueError("Invalid XMLUI: no Dialog element found !") 695 raise ValueError("Invalid XMLUI: no Dialog element found !")
696 dlg_type = dlg_elt.getAttribute("type") or C.XMLUI_DIALOG_MESSAGE 696 dlg_type = dlg_elt.getAttribute("type") or C.XMLUI_DIALOG_MESSAGE