Now use the is_nonstr_iter function, from colander.compat
This commit is contained in:
@@ -1671,7 +1671,7 @@ class SchemaNode(object):
|
|||||||
if hasattr(self.preparer, '__call__'):
|
if hasattr(self.preparer, '__call__'):
|
||||||
appstruct = self.preparer(appstruct)
|
appstruct = self.preparer(appstruct)
|
||||||
# if the preparer is a list, call each separate preparer
|
# if the preparer is a list, call each separate preparer
|
||||||
elif hasattr(self.preparer, '__iter__'):
|
elif is_nonstr_iter(self.preparer):
|
||||||
for preparer in self.preparer:
|
for preparer in self.preparer:
|
||||||
appstruct = preparer(appstruct)
|
appstruct = preparer(appstruct)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user