Author: rjollos
Date: Wed Jun 26 08:40:03 2013
New Revision: 1496829

URL: http://svn.apache.org/r1496829
Log:
Fixed regression introduced in [1496028]. The change was an attempt to make the 
code more readable, but hadn't been tested on Python 2.6. Thanks to Olemis for 
catching this quickly after the regression was introduced.

Modified:
    bloodhound/trunk/bloodhound_theme/bhtheme/theme.py

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1496829&r1=1496828&r2=1496829&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Wed Jun 26 08:40:03 2013
@@ -462,10 +462,9 @@ class QuickCreateTicketDialog(Component)
             req = dummy_request(self.env)
             ticket = Ticket(self.env)
             tm._populate(req, ticket, False)
-            all_fields = {
-                f['name']: f for f in tm._prepare_fields(req, ticket)
-                if f['type'] == 'select'
-            }
+            all_fields = dict([f['name'], f]
+                              for f in tm._prepare_fields(req, ticket)
+                              if f['type'] == 'select')
 
             product_field = all_fields['product']
             if product_field:


Reply via email to