comparison src/browser/sat_browser/richtext.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 97c72fe4a5f2
children b97c85b8a47e
comparison
equal deleted inserted replaced
573:12823bcbd05b 574:b07f0fe2763a
459 if target.startswith("@"): 459 if target.startswith("@"):
460 _class = panels.MicroblogPanel 460 _class = panels.MicroblogPanel
461 target = None if target == "@@" else target[1:] 461 target = None if target == "@@" else target[1:]
462 else: 462 else:
463 _class = panels.ChatPanel 463 _class = panels.ChatPanel
464 self.host.getOrCreateLiberviaWidget(_class, target) 464 self.host.getOrCreateLiberviaWidget(_class, {'item': target})
465 return True 465 return True
466 466
467 def syncFromEditor(self, content): 467 def syncFromEditor(self, content):
468 """Synchronize to unibox and close the dialog afterward. Display 468 """Synchronize to unibox and close the dialog afterward. Display
469 a message and leave the dialog open if the sync was not possible.""" 469 a message and leave the dialog open if the sync was not possible."""