First time here? Check out the FAQ!

Revision history  [back]

See here for the further analysis on this problem. I excerpted them from there for your info:

Dear Hongyi,

Let me add the reason why 'calcfunction' is not imported in the way described in the linked post:

In the import

orm/nodes/process/__init__.py has from .calculation import *

the calcfunction module is imported into orm/nodes/process/calculation/__init__.py, but that file also defines an attribute

__all__ = ('CalculationNode', 'CalcFunctionNode', 'CalcJobNode')

Because a wildcard (from something import *) import will import only the names defined in __all__, the "calcfunction" module is not exposed at the level of orm/nodes/process/__init__.py.

Maybe this explanation will help in figuring out what goes wrong with the autocompletion.

Best regards,

Dominik