From: Leandro Lucarella Date: Wed, 25 Jun 2008 03:06:17 +0000 (-0300) Subject: Call ComposedSubHandler._attr() with cont parameter (closes #31) X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/a07cee69d1eb6575dd4534bc56e014a08e10bb8a?ds=sidebyside Call ComposedSubHandler._attr() with cont parameter (closes #31) --- diff --git a/pymin/service/util.py b/pymin/service/util.py index cdea1a0..e8e65a1 100644 --- a/pymin/service/util.py +++ b/pymin/service/util.py @@ -1051,8 +1051,8 @@ class ComposedSubHandler(SubHandler): # do we have the same item? then raise an error if key in self._vattr(cont): log.debug(u'ComposedSubHandler.add: allready exists') - if not isinstance(self._attr(), dict): - key = self._attr().index(item) + if not isinstance(self._attr(cont), dict): + key = self._attr(cont).index(item) raise ItemAlreadyExistsError(key) # do we have the same item, but logically deleted? then update flags if key in self._attr(cont):