Commit ca9f4701 authored by Yoshinori Okuji's avatar Yoshinori Okuji

No, the hack must be disabled by default. Do not enable it blindly. A hack is a hack.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17743 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6acc9d6
......@@ -594,10 +594,15 @@ class ObjectTemplateItem(BaseTemplateItem):
obj=obj.aq_parent
connection=obj._p_jar
__traceback_info__ = 'Importing %s' % file_name
# 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
def preinstall(self, context, installed_bt, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment