Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
494:5d8632a7bfde | 495:587fe75d1b16 |
---|---|
410 ui = xmlui.XMLUI(self, xml_data=data['xmlui']) | 410 ui = xmlui.XMLUI(self, xml_data=data['xmlui']) |
411 options = ['NO_CLOSE'] if ui.type == 'form' else [] | 411 options = ['NO_CLOSE'] if ui.type == 'form' else [] |
412 _dialog = dialog.GenericDialog(ui.title, ui, options=options) | 412 _dialog = dialog.GenericDialog(ui.title, ui, options=options) |
413 ui.setCloseCb(_dialog.close) | 413 ui.setCloseCb(_dialog.close) |
414 _dialog.show() | 414 _dialog.show() |
415 elif "public_blog" in data: | |
416 # TODO: use the bare instead of node when all blogs can be retrieved | |
417 node = jid.JID(data['public_blog']).node | |
418 self.addTab("%s's blog" % node, panels.WebPanel(self, "/blog/%s" % node)) | |
415 else: | 419 else: |
416 dialog.InfoDialog("Error", | 420 dialog.InfoDialog("Error", |
417 "Unmanaged action result", Width="400px").center() | 421 "Unmanaged action result", Width="400px").center() |
418 | 422 |
419 def _actionEb(self, err_data): | 423 def _actionEb(self, err_data): |