Corrected JSON response
authorThierry Florac <thierry.florac@onf.fr>
Mon, 04 Jun 2018 12:32:06 +0200
changeset 209 1bde2a1c1902
parent 208 2dda0d626ef1
child 210 a4497eed4ff7
Corrected JSON response
src/ztfy/myams/form.py
--- a/src/ztfy/myams/form.py	Thu Oct 26 14:49:30 2017 +0200
+++ b/src/ztfy/myams/form.py	Mon Jun 04 12:32:06 2018 +0200
@@ -165,7 +165,7 @@
     def getFormOptions(self):
         if self.form_options:
             writer = getUtility(IJSONWriter)
-            return writer.writer(self.form_options)
+            return writer.write(self.form_options)
 
     def getAjaxErrors(self):
         errors = {'status': u'error',