[Erp5-report] r33869 nicolas - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 18 14:51:59 CET 2010
Author: nicolas
Date: Thu Mar 18 14:51:54 2010
New Revision: 33869
URL: http://svn.erp5.org?rev=33869&view=rev
Log:
avoid appending the same path twice
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=33869&r1=33868&r2=33869&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Thu Mar 18 14:51:54 2010
@@ -1125,6 +1125,8 @@
for from_path in from_path_list:
container = portal.unrestrictedTraverse(from_path, None)
if container is not None:
+ if from_path in recursive_path_list:
+ continue
recursive_path_list.append(from_path)
# Check that container support iteration of sub_content_id
if getattr(aq_base(container), 'objectIds', None) is not None:
More information about the Erp5-report
mailing list