You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by gj...@apache.org on 2012/04/17 12:15:31 UTC
svn commit: r1327026 -
/incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui/__init__.py
Author: gjm
Date: Tue Apr 17 10:15:31 2012
New Revision: 1327026
URL: http://svn.apache.org/viewvc?rev=1327026&view=rev
Log:
dashboard: fix second load of dashboard - get widgets schema instead of popping
Modified:
incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui/__init__.py
Modified: incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui/__init__.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui/__init__.py?rev=1327026&r1=1327025&r2=1327026&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui/__init__.py (original)
+++ incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui/__init__.py Tue Apr 17 10:15:31 2012
@@ -228,7 +228,7 @@ class DashboardModule(Component):
"""Expand raw widget data and format it for use in template
"""
# TODO: Implement dynamic dashboard specification
- widgets_spec = schema.pop('widgets', {})
+ widgets_spec = schema.get('widgets', {})
widgets_index = dict([wnm, wp] \
for wp in DashboardSystem(self.env).widget_providers \
for wnm in wp.get_widgets()