Browse Source

properly encode validation errors

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
53e6fcf989
  1. 5
      pyweb/extdirect.py

5
pyweb/extdirect.py

@ -443,7 +443,10 @@ class Provider( object ):
forminst.save()
return { 'success': True }
else:
return { 'success': False }
errdict = {}
for errfld in forminst.errors:
errdict[errfld] = "\n".join( forminst.errors[errfld] )
return { 'success': False, 'errors': errdict }
@property
def urls(self):

Loading…
Cancel
Save