SVN: r26132 - trunk/quixote/form

David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Tue, 15 Feb 2005 14:40:55 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Author: dbinger
Date: 2005-02-15 14:40:55 -0500 (Tue, 15 Feb 2005)
New Revision: 26132

Modified:
    trunk/quixote/form/form.py
Log:
Fix two errors related to the TOKEN_NOTICE.

Changed:
form/form.py


Modified: trunk/quixote/form/form.py
===================================================================
--- trunk/quixote/form/form.py	2005-02-15 19:38:57 UTC (rev 26131)
+++ trunk/quixote/form/form.py	2005-02-15 19:40:55 UTC (rev 26132)
@@ -57,7 +57,7 @@
                                   '// -->\n'
                                   '</script>\n')

-    TOKEN_NOTICE = htmltext('<div class="errornotice"'
+    TOKEN_NOTICE = htmltext('<div class="errornotice">'
                              'The form you have submitted is invalid.  
Most '
                              'likely it has been successfully submitted 
once '
                              'already.  Please review the the form data 
'
@@ -335,7 +335,7 @@
              # does not match anything in the session.  It could be an
              # a cross-site attack but most likely the back button has
              # be used
-            return self.INVALID_TOKEN_NOTICE
+            return self.TOKEN_NOTICE
          else:
              return self.ERROR_NOTICE