diff options
author | John Postlethwait <john.postlethwait@nebula.com> | 2012-06-23 13:58:35 -0700 |
---|---|---|
committer | John Postlethwait <john.postlethwait@nebula.com> | 2012-06-27 16:06:06 -0700 |
commit | 406cb5d56cd9e3b8afbea45c209150707db7bcb3 (patch) | |
tree | 310346b10ba3252bad8a5d16037a4f16af5ca817 /horizon/exceptions.py | |
parent | 0ffa67469733fccd154011ff3b316cd88031a633 (diff) | |
download | horizon-406cb5d56cd9e3b8afbea45c209150707db7bcb3.tar.gz |
Volume Progress Bar & Fixes For Quota
When a volume creation exceed the allocation quota
a vague error message was returned that offered the
user no guidance as to what went wrong. This has
been fixed.
Fixes Bug #1012883
This change also abstracts the Quota javascript to
allow it to be used anywhere on the site for any
progress bars that are to be shown in the future.
Implements blueprint progress-bar-javascript
On top of this I have renamed all "can_haz" filters
in the code, as they are really sort of embarassing.
Lastly, I have added the ability to append JS
events to the window load when a modal is loaded as
a static page, OR when it is loaded as an AJAX
modal.
Change-Id: I4b0cefa160cafbbd07d4b0981f62febaed051871
Diffstat (limited to 'horizon/exceptions.py')
-rw-r--r-- | horizon/exceptions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/horizon/exceptions.py b/horizon/exceptions.py index 0c3a8c6fa..707b4fe62 100644 --- a/horizon/exceptions.py +++ b/horizon/exceptions.py @@ -57,7 +57,8 @@ class HorizonReporterFilter(SafeExceptionReporterFilter): sensitive_variables = None while current_frame is not None: if (current_frame.f_code.co_name == 'sensitive_variables_wrapper' - and 'sensitive_variables_wrapper' in current_frame.f_locals): + and 'sensitive_variables_wrapper' + in current_frame.f_locals): # The sensitive_variables decorator was used, so we take note # of the sensitive variables' names. wrapper = current_frame.f_locals['sensitive_variables_wrapper'] |