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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 22 11:26:46 CET 2007


Author: yo
Date: Thu Nov 22 11:26:46 2007
New Revision: 17743

URL: http://svn.erp5.org?rev=17743&view=rev
Log:
No, the hack must be disabled by default. Do not enable it blindly. A hack is a hack.

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=17743&r1=17742&r2=17743&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Thu Nov 22 11:26:46 2007
@@ -594,8 +594,13 @@
       obj=obj.aq_parent
       connection=obj._p_jar
     __traceback_info__ = 'Importing %s' % file_name
-    if isinstance(file_obj, file):
-      obj = connection.importFile(self._compileXML(file_obj))
+    # The pre-compilation hack is disabled, because the design is not
+    # nice. Do not enable it without yo's approval.
+    if 0:
+      if isinstance(file_obj, file):
+        obj = connection.importFile(self._compileXML(file_obj))
+      else:
+        obj = connection.importFile(file_obj, customImporters=customImporters)
     else:
       obj = connection.importFile(file_obj, customImporters=customImporters)
     self._objects[file_name[:-4]] = obj




More information about the Erp5-report mailing list