def __setitem__(self, key, value): checkObject(self, key, value) value.__parent__ = self value.__name__ = key alsoProvides(value, IContained) OOBTree.__setitem__(self, key, value) notify(events.RelationAddedEvent(value))
def __setitem__(self, key, data): if key == 'display': OOBTree.__setitem__(self, key, data) else: text = self.setDisplayAttribute(key, data) item = Item(data) OOBTree.__setitem__(self, key, item) self._display[key] = text self._p_changed = 1 return
def __setitem__(self, key, data): item = Item(data) OOBTree.__setitem__(self, key, item) return