Author: matevz
Date: Thu Apr 25 11:50:09 2013
New Revision: 1475716
URL: http://svn.apache.org/r1475716
Log:
Ref. #441, exception raised when browsing to /products/
Modified:
bloodhound/trunk/bloodhound_multiproduct/multiproduct/web_ui.py
Modified: bloodhound/trunk/bloodhound_multiproduct/multiproduct/web_ui.py
URL:
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/multiproduct/web_ui.py?rev=1475716&r1=1475715&r2=1475716&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/web_ui.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/web_ui.py Thu Apr 25
11:50:09 2013
@@ -67,7 +67,7 @@ class ProductModule(Component):
if 'PRODUCT_VIEW' in req.perm(Neighborhood('product',
p.prefix))]
- if pid is not None:
+ if pid:
add_link(req, 'up', req.href.products(), _('Products'))
try:
@@ -90,7 +90,7 @@ class ProductModule(Component):
elif action == 'delete':
raise TracError(_('Product removal is not allowed!'))
- if pid is None:
+ if not pid:
data = {'products': products,
'context': web_context(req, Resource('product', None))}
return 'product_list.html', data, None