Mercurial > libervia-web
comparison src/browser/libervia_main.py @ 615:70872a83ef15 frontends_multi_profiles
browser side (web panel): add an option to hide url headed + use it for public blog
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 10 Feb 2015 20:52:02 +0100 |
parents | 14bdf5394ae9 |
children | 1c0d5a87c554 |
comparison
equal
deleted
inserted
replaced
614:14bdf5394ae9 | 615:70872a83ef15 |
---|---|
402 ui = xmlui.create(self, xml_data=data['xmlui']) | 402 ui = xmlui.create(self, xml_data=data['xmlui']) |
403 ui.show() | 403 ui.show() |
404 elif "public_blog" in data: | 404 elif "public_blog" in data: |
405 # TODO: use the bare instead of node when all blogs can be retrieved | 405 # TODO: use the bare instead of node when all blogs can be retrieved |
406 node = jid.JID(data['public_blog']).node | 406 node = jid.JID(data['public_blog']).node |
407 web_widget = self.widgets.getOrCreateWidget(panels.WebPanel, "/blog/{}".format(node), profile=C.PROF_KEY_NONE, on_new_widget=None, on_existing_widget=C.WIDGET_RECREATE) # FIXME: won't work with unicode nodes | 407 web_widget = self.widgets.getOrCreateWidget(panels.WebPanel, "/blog/{}".format(node), show_url=False, profile=C.PROF_KEY_NONE, on_new_widget=None, on_existing_widget=C.WIDGET_RECREATE) # FIXME: won't work with unicode nodes |
408 self.addTab("{}'s blog".format(unicode(node)), web_widget) | 408 self.addTab("{}'s blog".format(unicode(node)), web_widget) |
409 else: | 409 else: |
410 dialog.InfoDialog("Error", | 410 dialog.InfoDialog("Error", |
411 "Unmanaged action result", Width="400px").center() | 411 "Unmanaged action result", Width="400px").center() |
412 | 412 |