Changeset 9857
- Timestamp:
- 10 Jan 2013, 07:02:42 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 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') -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9845 r9857 426 426 427 427 def update(self, subject=u'', body=u''): 428 super(ContactStudentForm, self).update() 428 429 self.form_fields.get('subject').field.default = subject 429 430 self.form_fields.get('body').field.default = body 430 return super(ContactStudentForm, self).update()431 return 431 432 432 433 def label(self):
Note: See TracChangeset for help on using the changeset viewer.