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