Commit 19a006c1 authored by Tres Seaver's avatar Tres Seaver

Defer problematic early import of OFS.Uninstalled.

parent a9a5e94b
...@@ -19,7 +19,6 @@ from UserDict import UserDict ...@@ -19,7 +19,6 @@ from UserDict import UserDict
from ZConfig.components.logger import logger from ZConfig.components.logger import logger
from ZODB.config import ZODBDatabase from ZODB.config import ZODBDatabase
import OFS.Uninstalled
# generic datatypes # generic datatypes
...@@ -320,6 +319,7 @@ def simpleClassFactory(jar, module, name, ...@@ -320,6 +319,7 @@ def simpleClassFactory(jar, module, name,
): ):
"""Class factory without ZClass support. """Class factory without ZClass support.
""" """
import OFS.Uninstalled
try: try:
m = __import__(module, _globals, _globals, _silly) m = __import__(module, _globals, _globals, _silly)
return getattr(m, name) return getattr(m, name)
...@@ -331,6 +331,7 @@ def zopeClassFactory(jar, module, name, ...@@ -331,6 +331,7 @@ def zopeClassFactory(jar, module, name,
): ):
"""Class factory with ZClass support. """Class factory with ZClass support.
""" """
import OFS.Uninstalled
try: try:
if module[:1]=='*': if module[:1]=='*':
# ZCLass! Yee ha! # ZCLass! Yee ha!
......
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