diff src/browser/sat_browser/blog.py @ 616:1c0d5a87c554 frontends_multi_profiles

browser_side: add and use method displayWidget to harmonize widget's management in Libervia (not completely done, there are some issues)
author souliane <souliane@mailoo.org>
date Wed, 11 Feb 2015 11:18:13 +0100
parents 537649f6a2d0
children 5baca9d46c34
line wrap: on
line diff
--- a/src/browser/sat_browser/blog.py	Tue Feb 10 20:52:02 2015 +0100
+++ b/src/browser/sat_browser/blog.py	Wed Feb 11 11:18:13 2015 +0100
@@ -445,7 +445,7 @@
         items_ = tuple(item) if isinstance(item, list) else (() if item is None else (item,))
         type_ = 'ALL' if items_ == () else 'GROUP'
         # XXX: pyjamas doesn't support use of cls directly
-        widget = host.widgets.getOrCreateWidget(MicroblogPanel, items_, profile=C.PROF_KEY_NONE, on_new_widget=None, on_existing_widget=C.WIDGET_RECREATE)
+        widget = host.displayWidget(MicroblogPanel, items_, dropped=True)
         host.FillMicroblogPanel(widget)
         host.bridge.getMassiveLastMblogs(type_, items_, 10, profile=C.PROF_KEY_NONE, callback=widget.massiveInsert)
         widget.refresh() # FIXME: needed ?