[Erp5-report] r11913 - /erp5/trunk/products/ERP5/Document/Domain.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 8 10:06:27 CET 2007
Author: jp
Date: Mon Jan 8 10:06:24 2007
New Revision: 11913
URL: http://svn.erp5.org?rev=11913&view=rev
Log:
Fixed URL generation inside domains.
Modified:
erp5/trunk/products/ERP5/Document/Domain.py
Modified: erp5/trunk/products/ERP5/Document/Domain.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Domain.py?rev=11913&r1=11912&r2=11913&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Domain.py (original)
+++ erp5/trunk/products/ERP5/Document/Domain.py Mon Jan 8 10:06:24 2007
@@ -93,8 +93,11 @@
We must eliminate portal_categories in the RelativeUrl
since it is never present in the category list
"""
- return '/'.join(self.portal_url.getRelativeContentPath(self)[1:])
-
+ content_path = self.portal_url.getRelativeContentPath(self)
+ if content_path[0] == 'portal_categories':
+ return '/'.join(content_path[1:])
+ return '/'.join(content_path)
+
# Generator API
# How to define a generated subdomain
More information about the Erp5-report
mailing list