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))
Exemple #2
0
 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
Exemple #3
0
 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
Exemple #4
0
 def __setitem__(self, key, data):        
     item = Item(data)
     OOBTree.__setitem__(self, key, item)       
     return
Exemple #5
0
 def __setitem__(self, key, data):
     item = Item(data)
     OOBTree.__setitem__(self, key, item)
     return