Comment 4 for bug 1210253

Revision history for this message
Ante Karamatić (ivoks) wrote :

Well, I would argue that for yet unknown reason Cloud Archive exposes one bug. If you look at Horizon's __init__.py, you'll notice:

try:
    from horizon.base import Dashboard
    from horizon.base import Horizon
    from horizon.base import Panel
    from horizon.base import PanelGroup
except ImportError:
   ...do some other things...

It's perfectly possible (as it is with Cloud Archive for some reason) to not import Dashboard, Horizon, Panel and PanelGroup. And this is expected and there's even a warning raised. But, at the end of the file:

assert Dashboard
assert Panel
assert PanelGroup

Taking into account that try might fail, it's wrong to assume that Dashboard, Panel and PanelGroup are defined. Which is what python is complaining about:

[Thu Aug 08 09:44:41 2013] [error] [client 10.1.6.45] NameError: name 'Dashboard' is not defined

So, I would say there are two bugs hidden here. One is wrong assumption in Horizon that Dashboard, Panel and PanelGroup are defined and the other one is about Horizon in Cloud Archive not importing these modules.