comparison src/browser/sat_browser/contact_list.py @ 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 66beef5b943d
children d3fa1e8904cf
comparison
equal deleted inserted replaced
747:efbd28b3438e 748:0d5889b9313c
52 libervia_widget.DragLabel.__init__(self, group, "GROUP", host) 52 libervia_widget.DragLabel.__init__(self, group, "GROUP", host)
53 ClickHandler.__init__(self) 53 ClickHandler.__init__(self)
54 self.addClickListener(self) 54 self.addClickListener(self)
55 55
56 def onClick(self, sender): 56 def onClick(self, sender):
57 self.host.displayWidget(blog.MicroblogPanel, (self.group,)) 57 self.host.displayWidget(blog.Blog, (self.group,))
58 58
59 59
60 class GroupPanel(VerticalPanel): 60 class GroupPanel(VerticalPanel):
61 61
62 def __init__(self, parent): 62 def __init__(self, parent):
274 # need this hack to reproduce the Twisted's behavior. 274 # need this hack to reproduce the Twisted's behavior.
275 for other in self: 275 for other in self:
276 if other == item: 276 if other == item:
277 return True 277 return True
278 return False 278 return False
279 279
280 def index(self, item): 280 def index(self, item):
281 i = 0 281 i = 0
282 for other in self: 282 for other in self:
283 if other == item: 283 if other == item:
284 return i 284 return i