def _check_iterable(self, node, value): if not hasattr(value, '__iter__'): raise colander.Invalid( node, deform_i18n('${value} is not iterable', mapping={'value':value}) )
def _check_iterable(self, node, value): if not hasattr(value, '__iter__'): raise colander.Invalid( node, deform_i18n('${value} is not iterable', mapping={'value': value}))