Changeset 9857 for main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
- Timestamp:
- 10 Jan 2013, 07:02:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r9845 r9857 350 350 form_fields = grok.AutoFields(IContactForm).select('body') 351 351 352 def update(self): 353 super(ContactAdminForm, self).update() 354 self.form_fields.get('body').field.default = None 355 return 356 352 357 @property 353 358 def config(self): … … 393 398 394 399 def update(self): 400 super(EnquiriesForm, self).update() 395 401 # Handle captcha 396 402 self.captcha = getUtility(ICaptchaManager).getCaptcha() 397 403 self.captcha_result = self.captcha.verify(self.request) 398 404 self.captcha_code = self.captcha.display(self.captcha_result.error_code) 399 return super(EnquiriesForm, self).update()405 return 400 406 401 407 @action(_('Send now'), style='primary')
Note: See TracChangeset for help on using the changeset viewer.