|
@@ -96,10 +96,18 @@ class ConnectionRepository(DirectObject.DirectObject):
|
|
|
# Get all symbols.
|
|
# Get all symbols.
|
|
|
dcImports.update(module.__dict__)
|
|
dcImports.update(module.__dict__)
|
|
|
else:
|
|
else:
|
|
|
- if not hasattr(module, symbolName):
|
|
|
|
|
|
|
+ mangledName = self.mangleName(symbolName)
|
|
|
|
|
+ gotAny = 0
|
|
|
|
|
+ if hasattr(module, symbolName):
|
|
|
|
|
+ dcImports[symbolName] = getattr(module, symbolName)
|
|
|
|
|
+ gotAny = 1
|
|
|
|
|
+ if hasattr(module, mangledName):
|
|
|
|
|
+ dcImports[mangledName] = getattr(module, mangledName)
|
|
|
|
|
+ gotAny = 1
|
|
|
|
|
+
|
|
|
|
|
+ if not gotAny:
|
|
|
self.notify.error("Symbol %s not found in module %s." % (
|
|
self.notify.error("Symbol %s not found in module %s." % (
|
|
|
symbolName, moduleName))
|
|
symbolName, moduleName))
|
|
|
- dcImports[symbolName] = getattr(module, symbolName)
|
|
|
|
|
else:
|
|
else:
|
|
|
# "import moduleName"
|
|
# "import moduleName"
|
|
|
# Copy the module itself into the dictionary.
|
|
# Copy the module itself into the dictionary.
|