Revise interface between ExportImport and Connection.
The Connection class inherits from the ExportImport mixin, but they had an arm's length interaction. Restructure the code to provide direct interaction via the _import attribute. Remove the more general onCommitCallback() method. It was only used by ExportImport. A lot of cosmetic changes to ExportImport: - don't make local variables out of attribute lookups - avoid local variable names that shadow builtins - prefer isinstance() to type comparisons - prefer absolute imports to relative imports
Showing
Please register or sign in to comment