Doc page about Exceptions is blank
Bug #1276243 reported by
Julie Pichon
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Kirill Izotov |
Bug Description
The "Exceptions" page in the Horizon developer documentations is currently showing blank:
http://
It shouldn't be, there are a lot of docstrings in the exceptions file that should automatically be in there.
https:/
description: | updated |
Changed in horizon: | |
status: | New → Confirmed |
Changed in horizon: | |
milestone: | icehouse-3 → icehouse-rc1 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | icehouse-rc1 → 2014.1 |
To post a comment you must log in.
It seems like we are having some kind of a circular dependency with django. contrib. auth.
Traceback (most recent call last):ptions enykeev/ Developer/ Work/Openstack/ horizon/ .venv/lib/ python2. 7/site- packages/ sphinx/ ext/autodoc. py", line 321, in import_object _(self. modname) enykeev/ Developer/ Work/Openstack/ horizon/ horizon/ exceptions. py", line 25, in <module> enykeev/ Developer/ Work/Openstack/ horizon/ .venv/lib/ python2. 7/site- packages/ django/ contrib/ auth/__ init__. py", line 5, in <module> middleware. csrf import rotate_token enykeev/ Developer/ Work/Openstack/ horizon/ .venv/lib/ python2. 7/site- packages/ django/ middleware/ csrf.py" , line 16, in <module> enykeev/ Developer/ Work/Openstack/ horizon/ .venv/lib/ python2. 7/site- packages/ django/ utils/cache. py", line 26, in <module> enykeev/ Developer/ Work/Openstack/ horizon/ .venv/lib/ python2. 7/site- packages/ django/ core/cache/ __init_ _.py", line 70, in <module> enykeev/ Developer/ Work/Openstack/ horizon/ .venv/lib/ python2. 7/site- packages/ django/ conf/__ init__. py", line 53, in __getattr__ _setup( name) enykeev/ Developer/ Work/Openstack/ horizon/ .venv/lib/ python2. 7/site- packages/ django/ conf/__ init__. py", line 48, in _setup settings_ module) enykeev/ Developer/ Work/Openstack/ horizon/ .venv/lib/ python2. 7/site- packages/ django/ conf/__ init__. py", line 132, in __init__ import_ module( self.SETTINGS_ MODULE)
File "/Users/
__import_
File "/Users/
from django.contrib.auth import logout # noqa
File "/Users/
from django.
File "/Users/
from django.utils.cache import patch_vary_headers
File "/Users/
from django.core.cache import get_cache
File "/Users/
if DEFAULT_CACHE_ALIAS not in settings.CACHES:
File "/Users/
self.
File "/Users/
self._wrapped = Settings(
File "/Users/
mod = importlib.
-- I've hacked it a bit by disabling "try except" in django/ conf/__ init__. py to see the full trace --
File "/Users/ enykeev/ Developer/ Work/Openstack/ horizon/ .venv/lib/ python2. 7/site- packages/ django/ utils/importlib .py", line 35, in import_module _(name) enykeev/ Developer/ Work/Openstack/ horizon/ openstack_ dashboard/ settings. py", line 246, in <module> enykeev/ Developer/ Work/Openstack/ horizon/ openstack_ dashboard/ policy. py", line 27, in <module> enykeev/ Developer/ Work/Openstack/ horizon/ .venv/lib/ python2. 7/site- packages/ openstack_ auth/utils. py", line 17, in <module>
__import_
File "/Users/
from openstack_dashboard import policy
File "/Users/
from openstack_auth import utils as auth_utils
File "/Users/
from django.contrib import auth
ImportError: cannot import name auth
So, the question here is where should we fix that? My modest experience with Django tells me that we really shouldn't import something from django from inside the openstack_ horizon. settings, so the closest point of failure is an import statement within policy.py, which should be moved inside 'check' function.