From a17f7ca1337910fb3f09e987b735c97c845fec8b Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Mon, 17 Feb 2014 22:05:59 +0100 Subject: [PATCH] =?UTF-8?q?[attributs]=20Ajout=20de=20=5F=5Fdelitem=5F=5F?= =?UTF-8?q?=20=C3=A0=20AttrsList?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/attributs.py b/attributs.py index 50fe3e5..4575c16 100644 --- a/attributs.py +++ b/attributs.py @@ -147,6 +147,11 @@ class AttrsList(list): finally: 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): self._start() super(AttrsList, self).append(val)