web/captcha.py
changeset 5223 6abd6e3599f4
parent 5037 7778a2bbdf9d
child 5423 e15abfdcce38
--- a/web/captcha.py	Mon Apr 12 14:41:01 2010 +0200
+++ b/web/captcha.py	Tue Apr 13 12:19:24 2010 +0200
@@ -70,8 +70,7 @@
         return img + super(CaptchaWidget, self).render(form, field, renderer)
 
     def process_field_data(self, form, field):
-        captcha = form._cw.get_session_data(field.input_name(form), None,
-                                            pop=True)
+        captcha = form._cw.session.data.pop(field.input_name(form), None)
         val = super(CaptchaWidget, self).process_field_data(form, field)
         if val is None:
             return val # required will be checked by field