Commit 9016e526 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add ERP5Type/interfaces. fix undefined variable error.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27281 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6edda721
......@@ -531,8 +531,8 @@ def importLocalInterface(module_id, path = None):
path = os.path.join(path, "%s.py" % module_id)
f = open(path)
try:
module = imp.load_source(class_id, path, f)
class_id = "I" + convertToUpperCase(module_id)
module = imp.load_source(class_id, path, f)
setattr(Products.ERP5Type.interfaces, class_id, getattr(module, class_id))
finally:
f.close()
......
......@@ -46,6 +46,7 @@ document_classes = updateGlobals( this_module,
is_erp5_type=1 )
import Interface, PropertySheet, ZopePatch, StateChangeInfoPatch, CMFCorePatch
import interfaces
import Products.Localizer # So that we make sure Globals.get_request is available
......
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