incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1307991 - in /incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard: web_ui.py widgets/query.py
Date Sun, 01 Apr 2012 01:42:56 GMT
Author: gjm
Date: Sun Apr  1 01:42:56 2012
New Revision: 1307991

URL: http://svn.apache.org/viewvc?rev=1307991&view=rev
Log:
Dashboard code import: BH_Dashboard: Bug fixed: Ticket query constraints not applied in 0.13

Modified:
    incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui.py
    incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/query.py

Modified: incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui.py?rev=1307991&r1=1307990&r2=1307991&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui.py (original)
+++ incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui.py Sun Apr  1 01:42:56
2012
@@ -125,7 +125,7 @@ class DashboardModule(Component):
                 '&status=reopened&group=time&col=id&col=summary&col=owner'
\
                 '&col=status&col=priority&order=priority&groupdesc=1&desc=1'
         mine_query = 'status=accepted&status=assigned&status=new' \
-                '&status=reopened&owner=murphy&group=time&col=id&col=summary'
\
+                '&status=reopened&owner=$USER&group=time&col=id&col=summary'
\
                 '&col=owner&col=status&col=priority&order=priority' \
                 '&groupdesc=1&desc=1'
         layout = BootstrapLayout(self.env)

Modified: incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/query.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/query.py?rev=1307991&r1=1307990&r2=1307991&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/query.py (original)
+++ incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/query.py Sun Apr 
1 01:42:56 2012
@@ -79,14 +79,16 @@ class TicketQueryWidget(WidgetBase):
 
             fakereq = dummy_request(self.env, req.authname)
             fakereq.args = args = parse_qs(qstr)
+            fakereq.arg_list = []
             for k,v in args.items():
+                # Patch for 0.13
+                fakereq.arg_list.extend((k, _v) for _v in v)
                 try:
                     if len(v) == 1:
                         args[k] = v[0]
                 except TypeError:
                     pass
             args.update({'page' : page, 'max': maxrows})
-            self.log.debug("Ticket query for widget %s", args)
 
             qrymdl = self.env[QueryModule]
             if qrymdl is None :



Mime
View raw message