[ckan-changes] commit/ckan: dread: [lib/base][xs]: 503 errors do not display flash message until the next non-503 request, so do not add the error message to the flash message queue.

Bitbucket commits-noreply at bitbucket.org
Tue Oct 25 11:58:40 UTC 2011


1 new commit in ckan:


https://bitbucket.org/okfn/ckan/changeset/ae6078562324/
changeset:   ae6078562324
user:        dread
date:        2011-10-05 12:34:08
summary:     [lib/base][xs]: 503 errors do not display flash message until the next non-503 request, so do not add the error message to the flash message queue.
affected #:  1 file

diff -r 6227142b046072fb6a8844eb76543eee96604a8e -r ae6078562324857d977d2578aebc75f9b39879f5 ckan/lib/base.py
--- a/ckan/lib/base.py
+++ b/ckan/lib/base.py
@@ -39,7 +39,7 @@
 ALLOWED_FIELDSET_PARAMS = ['package_form', 'restrict']
 
 def abort(status_code=None, detail='', headers=None, comment=None):
-    if detail:
+    if detail and status_code!=503:
         h.flash_error(detail)
     # #1267 Convert detail to plain text, since WebOb 0.9.7.1 (which comes
     # with Lucid) causes an exception when unicode is received.

Repository URL: https://bitbucket.org/okfn/ckan/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list