Commit 513eab11 authored by Julien Muchembled's avatar Julien Muchembled

Temporary hack to fix r39785

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39824 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7725e15d
...@@ -925,7 +925,7 @@ def importLocalDocument(class_id, path=None): ...@@ -925,7 +925,7 @@ def importLocalDocument(class_id, path=None):
import Permissions import Permissions
from Products.ERP5Type import document_class_registry from Products.ERP5Type import document_class_registry
if path and '/Products/' in path: if path and 'products' in path.lower(): # XXX
classpath = document_class_registry[class_id] classpath = document_class_registry[class_id]
module_path = classpath.rsplit('.', 1)[0] module_path = classpath.rsplit('.', 1)[0]
module = __import__(module_path, {}, {}, (module_path,)) module = __import__(module_path, {}, {}, (module_path,))
......
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