diff src/browser/libervia_main.py @ 500:67a4e8383b70

browser side (XMLUI): XMLUI update to follow core changes: - Dialogs are now managed - FileDialog raise a NotImplementedError, it's not yet possible in Libervia - XMLUIPanel.show is implemented - following core changes, we now create an XMLUI with xmlui.create(...) - WidgetFactory now inherit from GenericFactory - workaround for __getattr__ bug in pyjamas, now createXXX are automaticaly created with inspection
author Goffi <goffi@goffi.org>
date Wed, 13 Aug 2014 14:09:09 +0200
parents 587fe75d1b16
children 88ece2a00c63
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Fri Jul 25 11:43:27 2014 +0200
+++ b/src/browser/libervia_main.py	Wed Aug 13 14:09:09 2014 +0200
@@ -407,11 +407,8 @@
             # action was a one shot, nothing to do
             pass
         elif "xmlui" in data:
-            ui = xmlui.XMLUI(self, xml_data=data['xmlui'])
-            options = ['NO_CLOSE'] if ui.type == 'form' else []
-            _dialog = dialog.GenericDialog(ui.title, ui, options=options)
-            ui.setCloseCb(_dialog.close)
-            _dialog.show()
+            ui = xmlui.create(self, xml_data=data['xmlui'])
+            ui.show()
         elif "public_blog" in data:
             # TODO: use the bare instead of node when all blogs can be retrieved
             node = jid.JID(data['public_blog']).node