[Mpuls-commits] r3036 - in base/trunk: . mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jun 18 16:59:35 CEST 2010


Author: bh
Date: 2010-06-18 16:59:31 +0200 (Fri, 18 Jun 2010)
New Revision: 3036

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/controllers/appointment.py
Log:
* mpulsweb/controllers/appointment.py
(AppointmentController.createAction): Fix form_result reference


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-06-18 14:16:01 UTC (rev 3035)
+++ base/trunk/ChangeLog	2010-06-18 14:59:31 UTC (rev 3036)
@@ -1,5 +1,10 @@
 2010-06-18  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/controllers/appointment.py
+	(AppointmentController.createAction): Fix form_result reference
+
+2010-06-18  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/templates/appointments/dialogs/confirm.mako,
 	mpulsweb/templates/appointments/dialogs/failed_delete_appointment.mako,
 	mpulsweb/templates/appointments/dialogs/success_create_appointment.mako,

Modified: base/trunk/mpulsweb/controllers/appointment.py
===================================================================
--- base/trunk/mpulsweb/controllers/appointment.py	2010-06-18 14:16:01 UTC (rev 3035)
+++ base/trunk/mpulsweb/controllers/appointment.py	2010-06-18 14:59:31 UTC (rev 3036)
@@ -93,7 +93,7 @@
             c.form_result = validator.to_python(request.params)
             # Create appointment
             appointment = factory.createNew()
-            appointment.setData(form_result)
+            appointment.setData(c.form_result)
             appointment.store()
             c.dialog_title = CREATE_APPOINT_NOTIFICATION_SUCCESS
             c.dialog_text = CREATE_APPOINT_NOTIFICATION_TEXT_SUCCESS



More information about the Mpuls-commits mailing list