[attributs] Ajout de __delitem__ à AttrsList

This commit is contained in:
Valentin Samir 2014-02-17 22:05:59 +01:00
parent ff62cda2af
commit a17f7ca133

View file

@ -147,6 +147,11 @@ class AttrsList(list):
finally: finally:
super(AttrsList, self).__init__(self._parent[self._attr]) super(AttrsList, self).__init__(self._parent[self._attr])
def __delitem__(self, index):
self._start()
super(AttrsList, self).__delitem__(index)
self._commit()
def append(self, val): def append(self, val):
self._start() self._start()
super(AttrsList, self).append(val) super(AttrsList, self).append(val)