Mercurial > libervia-web
diff src/browser/sat_browser/contact.py @ 574:b07f0fe2763a
browser_side: safer attributes handling in getOrCreateLiberviaWidget + use it to create MUC panels
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 18 Oct 2014 13:16:56 +0200 |
parents | f0c8a4d51890 |
children | 668bb04e9708 |
line wrap: on
line diff
--- a/src/browser/sat_browser/contact.py Fri Oct 17 13:26:33 2014 +0200 +++ b/src/browser/sat_browser/contact.py Sat Oct 18 13:16:56 2014 +0200 @@ -80,7 +80,7 @@ self.addClickListener(self) def onClick(self, sender): - self.host.getOrCreateLiberviaWidget(panels.MicroblogPanel, self.group) + self.host.getOrCreateLiberviaWidget(panels.MicroblogPanel, {'item': self.group}) class ContactLabel(HTML): @@ -205,7 +205,7 @@ if handle_click: def cb(contact_jid): - self.host.getOrCreateLiberviaWidget(panels.ChatPanel, contact_jid) + self.host.getOrCreateLiberviaWidget(panels.ChatPanel, {'item': contact_jid}) self.click_listener = cb def add(self, jid_s, name=None): @@ -295,7 +295,7 @@ self.addClickListener(self) def onClick(self, sender): - self.host.getOrCreateLiberviaWidget(panels.MicroblogPanel, None) + self.host.getOrCreateLiberviaWidget(panels.MicroblogPanel, {'item': None}) class ContactPanel(SimplePanel):