[Erp5-report] r8609 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jul 19 17:02:53 CEST 2006


Author: aurel
Date: Wed Jul 19 17:02:30 2006
New Revision: 8609

URL: http://svn.erp5.org?rev=8609&view=rev
Log:
don't export empty xml files (thanks to christophe)

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=8609&r1=8608&r2=8609&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Wed Jul 19 17:02:30 2006
@@ -1959,7 +1959,7 @@
 class PortalTypeRolesTemplateItem(BaseTemplateItem):
 
   def __init__(self, id_list, **kw):
-    id_list = ['portal_type_roles/%s' % id for id in id_list]
+    id_list = ['portal_type_roles/%s' % id for id in id_list if id != '']
     BaseTemplateItem.__init__(self, id_list, **kw)
 
   def build(self, context, **kw):
@@ -3445,7 +3445,7 @@
 class LocalRolesTemplateItem(BaseTemplateItem):
 
   def __init__(self, id_list, **kw):
-    id_list = ['local_roles/%s' % id for id in id_list]
+    id_list = ['local_roles/%s' % id for id in id_list if id != '']
     BaseTemplateItem.__init__(self, id_list, **kw)
 
   def build(self, context, **kw):




More information about the Erp5-report mailing list