diff src/browser/libervia_main.py @ 495:587fe75d1b16

browser_side: handle menus of type ROOM, SINGLE and ROSTER_JID
author souliane <souliane@mailoo.org>
date Tue, 15 Jul 2014 18:45:33 +0200
parents 5d8632a7bfde
children 67a4e8383b70
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Tue Jul 15 18:43:55 2014 +0200
+++ b/src/browser/libervia_main.py	Tue Jul 15 18:45:33 2014 +0200
@@ -412,6 +412,10 @@
             _dialog = dialog.GenericDialog(ui.title, ui, options=options)
             ui.setCloseCb(_dialog.close)
             _dialog.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
+            self.addTab("%s's blog" % node, panels.WebPanel(self, "/blog/%s" % node))
         else:
             dialog.InfoDialog("Error",
                               "Unmanaged action result", Width="400px").center()