Comment 26 for bug 1210253

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/56547
Committed: http://github.com/openstack/horizon/commit/b6eb9a2480a82cf93f7a62e9c7373feddc8296fe
Submitter: Jenkins
Branch: master

commit b6eb9a2480a82cf93f7a62e9c7373feddc8296fe
Author: Radomir Dopieralski <email address hidden>
Date: Fri Nov 15 10:04:31 2013 +0100

    Remove asserts for optional imports

    Horizon's __init__.py has some code that explicitly allows it to
    be imported by setup.py before Django is set up, by making import
    failures just throw a warning instead of an exception. But that code
    is defeated by a bunch of asserts that were added later, that just
    make the error even more confusing.

    I'm removing the asserts and replacing them with __all__.

    Closes-bug: #1210253
    Change-Id: I0fde7810a033fd7216da9a5460f5e4e323b4d6e9