incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1295557 - /incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/web_ui.py
Date Thu, 01 Mar 2012 13:35:15 GMT
Author: gjm
Date: Thu Mar  1 13:35:14 2012
New Revision: 1295557

URL: http://svn.apache.org/viewvc?rev=1295557&view=rev
Log:
fix careless process_request logic

Modified:
    incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/web_ui.py

Modified: incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/web_ui.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/web_ui.py?rev=1295557&r1=1295556&r2=1295557&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/web_ui.py (original)
+++ incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/web_ui.py Thu Mar
 1 13:35:14 2012
@@ -61,8 +61,10 @@ class ProductTicketModule(TicketModule):
     def process_request(self, req):
         """Override for TicketModule process_request"""
         if 'id' in req.args:
-            if (req.path_info == '/newticket' or
-               '/' + req.args['product'] + '/newticket'):
+            pathinfo = req.path_info
+            prod = req.args.get('product')
+            if ((prod is not None and pathinfo == '/' + prod + '/newticket') or
+                (pathinfo == '/newticket')):
                 raise TracError(_("id can't be set for a new ticket request"))
             return self._process_ticket_request(req)
             #switch to the surrogate key



Mime
View raw message