comparison browser_side/contact.py @ 267:a76243c02074

browser_side: changes regarding widgets and tabs: - getOrCreateLiberviaWidget gets a tab_label argument to add widgets in a specific tab - ChatPanel can be matched not only regarding the target jid but also the dialog type ("one2one", "group"...)
author souliane <souliane@mailoo.org>
date Sun, 17 Nov 2013 17:53:37 +0100
parents 56a307f08ffe
children d868181d0649
comparison
equal deleted inserted replaced
266:cc778206b7ae 267:a76243c02074
171 def contextMenuCallback(self, sender, key): 171 def contextMenuCallback(self, sender, key):
172 if key == "blog": 172 if key == "blog":
173 # TODO: use the bare when all blogs can be retrieved 173 # TODO: use the bare when all blogs can be retrieved
174 node = JID(sender.jid).node 174 node = JID(sender.jid).node
175 web_panel = WebPanel(self.host, "/blog/%s" % node) 175 web_panel = WebPanel(self.host, "/blog/%s" % node)
176 self.host.addTab(web_panel, "%s's blog" % node) 176 self.host.addTab("%s's blog" % node, web_panel)
177 else: 177 else:
178 sender.onClick(sender) 178 sender.onClick(sender)
179 179
180 def add(self, jid, name=None): 180 def add(self, jid, name=None):
181 def item_cb(item): 181 def item_cb(item):