changeset 748:0d5889b9313c

browser side: fixed group panel drop and contact_list click on GroupLabel
author Goffi <goffi@goffi.org>
date Mon, 23 Nov 2015 16:39:11 +0100
parents efbd28b3438e
children 7168a9873dde
files src/browser/sat_browser/blog.py src/browser/sat_browser/contact_list.py
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/sat_browser/blog.py	Mon Nov 23 15:57:15 2015 +0100
+++ b/src/browser/sat_browser/blog.py	Mon Nov 23 16:39:11 2015 +0100
@@ -527,9 +527,7 @@
     #         self.loadMoreMainEntries()
 
 
-# libervia_widget.LiberviaWidget.addDropKey("GROUP", lambda host, item: MicroblogPanel.onGroupDrop(host, (item,)))
-#
-# # Needed for the drop keys to not be mixed between meta panel and panel for "Contacts" group
+libervia_widget.LiberviaWidget.addDropKey("GROUP", lambda host, item: Blog.onGroupDrop(host, (item,)))
 libervia_widget.LiberviaWidget.addDropKey("CONTACT_TITLE", lambda host, item: Blog.onGroupDrop(host, ()))
 quick_blog.registerClass("ENTRY", Entry)
 quick_widgets.register(quick_blog.QuickBlog, Blog)
--- a/src/browser/sat_browser/contact_list.py	Mon Nov 23 15:57:15 2015 +0100
+++ b/src/browser/sat_browser/contact_list.py	Mon Nov 23 16:39:11 2015 +0100
@@ -54,7 +54,7 @@
         self.addClickListener(self)
 
     def onClick(self, sender):
-        self.host.displayWidget(blog.MicroblogPanel, (self.group,))
+        self.host.displayWidget(blog.Blog, (self.group,))
 
 
 class GroupPanel(VerticalPanel):
@@ -276,7 +276,7 @@
             if other == item:
                 return True
         return False
-    
+
     def index(self, item):
         i = 0
         for other in self: