diff --git a/product/ERP5Type/patches/ExternalMethod.py b/product/ERP5Type/patches/ExternalMethod.py index 46a04d6acd8d27d8993a82dafd945f3f5d4e4908..6786351e9c91638a1b023b04f562ecfe12e8587c 100644 --- a/product/ERP5Type/patches/ExternalMethod.py +++ b/product/ERP5Type/patches/ExternalMethod.py @@ -21,6 +21,8 @@ if 1: Patch2: do not use hasattr. """ if f is None: + # XXX: should probably use __import__ instead, as in __call__ + # below. import erp5.component.extension try: f = getattr(getattr(erp5.component.extension, self._module),