[Freeipa-devel] [freeipa PR#258][comment] Break ipaplatform / ipalib import cycle of hell

tiran freeipa-github-notification at redhat.com
Tue Nov 22 11:17:03 UTC 2016


  URL: https://github.com/freeipa/freeipa/pull/258
Title: #258: Break ipaplatform / ipalib import cycle of hell

tiran commented:
"""
It's no longer a priority, but I still like to fix the imports No matter what the cyclic imports and cross-package dependencies are a mess. A wrong order of imports can trigger an import error. Even with this PR, ipapython.dogtag triggers an import of ipalib.api.

In the long run neither ipaplatform nor ipapython should have an import dependency on ipalib or a global ipalib.api object. Instead the API object should be passed.
"""

See the full comment at https://github.com/freeipa/freeipa/pull/258#issuecomment-262214571


More information about the Freeipa-devel mailing list