[Erp5-report] r16943 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 10 21:19:04 CEST 2007
Author: yo
Date: Wed Oct 10 21:19:03 2007
New Revision: 16943
URL: http://svn.erp5.org?rev=16943&view=rev
Log:
As far as I see, path usually consists of two items?
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=16943&r1=16942&r2=16943&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Wed Oct 10 21:19:03 2007
@@ -3653,8 +3653,12 @@
if action == 'nothing':
continue
path = string.split(path, '/')
- lang = path[-3]
- catalog = path[-2]
+ if len(path) == 2:
+ lang = path[0]
+ catalog = path[1]
+ else:
+ lang = path[-3]
+ catalog = path[-2]
if lang not in localizer.get_languages():
localizer.manage_addLanguage(lang)
mc = localizer._getOb(catalog)
More information about the Erp5-report
mailing list