[attributs] Ajout de __delitem__ à AttrsList
This commit is contained in:
parent
ff62cda2af
commit
a17f7ca133
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue