SVN: r25800 - trunk/quixote/form
"Roger E. Masse" <rmasse-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Fri, 17 Dec 2004 19:13:13 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: rmasse
Date: 2004-12-16 17:15:21 -0500 (Thu, 16 Dec 2004)
New Revision: 25800
Modified:
trunk/quixote/form/form.py
Log:
Retreat from asserting that the form is submitted when calling clear_errors.
There is code that relies on the following pattern:
if not form.get('save'):
form.clear_errors()
render()
......instead of:
if not form.is_submitted():
render()
......in order to ensure that the first render is clean.
Modified: trunk/quixote/form/form.py
===================================================================
--- trunk/quixote/form/form.py 2004-12-16 20:46:46 UTC (rev 25799)
+++ trunk/quixote/form/form.py 2004-12-16 22:15:21 UTC (rev 25800)
@@ -190,7 +190,6 @@
"""Ensure that all components of the form have parsed themselves.
Clear any errors that might have occured during parsing.
"""
- assert self.is_submitted()
request = get_request()
for widget in self.get_all_widgets():
widget.clear_error(request)