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

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Feb 23 12:08:11 CET 2008


Author: jerome
Date: Sat Feb 23 12:08:10 2008
New Revision: 19477

URL: http://svn.erp5.org?rev=19477&view=rev
Log:
Don't try to initialise Transforms (from portal_transforms) that couldn't have
been initialized. A typicall cause is that this transform rely on an external
program that is not present on the machine.


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=19477&r1=19476&r2=19477&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Sat Feb 23 12:08:10 2008
@@ -800,7 +800,9 @@
           # portal transforms specific initialization
           elif obj.meta_type in ('Transform', 'TransformsChain'):
             assert container.meta_type == 'Portal Transforms'
-            container._mapTransform(obj)
+            # skip transforms that couldn't have been initialized
+            if obj.title != 'BROKEN':
+              container._mapTransform(obj)
       # now put original order group
       # we remove object not added in forms
       # we put old objects we have kept




More information about the Erp5-report mailing list