PY-19975 Check all resolved symbols in __init__.py to find shortcut name for element
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Mon, 4 Jul 2016 09:59:08 +0000 (12:59 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Thu, 7 Jul 2016 08:54:45 +0000 (11:54 +0300)
commit81e5aa18917e1577e677e38ebaf681af58df2799
tree61a316894cb5b1cc8b6ceafb66a97834e1d7c26e
parent72a6f2d7d6c0cab4cb292894bd3c0210d8244b73
PY-19975 Check all resolved symbols in __init__.py to find shortcut name for element

The root of the problem however is that PythonPathCache often contains
relative qualified names as keys. It leads to the situation where
QFrame module is resolved to the corresponding files both in PyQt and
PySide. We should probably either omit such resolve result in
PythonPathCache entirely or use absolute qualified names for them as
keys.
python/src/com/jetbrains/python/codeInsight/imports/ImportFromExistingAction.java
python/src/com/jetbrains/python/psi/resolve/QualifiedNameFinder.java
python/testData/quickFixes/AddImportQuickFixTest/canonicalNamesFromHigherLevelPackage/bar/__init__.py [new file with mode: 0644]
python/testData/quickFixes/AddImportQuickFixTest/canonicalNamesFromHigherLevelPackage/bar/mod.py [new file with mode: 0644]
python/testData/quickFixes/AddImportQuickFixTest/canonicalNamesFromHigherLevelPackage/foo/__init__.py [new file with mode: 0644]
python/testData/quickFixes/AddImportQuickFixTest/canonicalNamesFromHigherLevelPackage/foo/mod.py [new file with mode: 0644]
python/testData/quickFixes/AddImportQuickFixTest/canonicalNamesFromHigherLevelPackage/main.py [new file with mode: 0644]
python/testData/quickFixes/AddImportQuickFixTest/canonicalNamesFromHigherLevelPackage/main_after.py [new file with mode: 0644]
python/testSrc/com/jetbrains/python/quickFixes/AddImportQuickFixTest.java