comparison src/browser/sat_browser/base_widget.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 77372641e05d
children a5019e62c3e9
comparison
equal deleted inserted replaced
573:12823bcbd05b 574:b07f0fe2763a
453 def doAttachChildren(self): 453 def doAttachChildren(self):
454 # We need to force the use of a panel subclass method here, else 454 # We need to force the use of a panel subclass method here, else
455 # the event will not propagate to children 455 # the event will not propagate to children
456 VerticalPanel.doAttachChildren(self) 456 VerticalPanel.doAttachChildren(self)
457 457
458 def matchEntity(self, entity): 458 def matchEntity(self, item):
459 """Check if this widget corresponds to the given entity. 459 """Check if this widget corresponds to the given entity.
460 460
461 This method should be overwritten by child classes. 461 This method should be overwritten by child classes.
462 @return: True if the widget matches the entity""" 462 @return: True if the widget matches the entity"""
463 raise NotImplementedError 463 raise NotImplementedError