summaryrefslogtreecommitdiff
path: root/horizon/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Enable to refresh ngdetails view"Rob Cresswell2017-08-021-2/+0
| | | | | | This reverts commit fe0df4579cd091caa49a5a0a14bc3b3d93bcd1a4. Change-Id: I017f27ad1e8833465d6727118019b78ade4c04d6
* Enable to refresh ngdetails viewShu Muto2017-07-271-0/+2
| | | | | | | | | | | | | | | | | For now refreshing ngdetails view by browser using F5 key or reload button, it causes 404 error from django. To fix this issue, this patch adds the url for '/ngdetails'. Furthermore, to specify current navigation and to check access grants to current panel, each access to Horizon django framework needs its dashboard and panel objects. It means that we need to specify dashboard and panel that ngdetails view belongs to. Also, this patch adds the process and settings to specify dashboard and panel object for each ngdetails view. Change-Id: I4bcffd2e222ce2df186551cceba0aa38f600d9c8 Closes-Bug: #1681627
* hacking: noqa cleanup in horizonAkihiro Motoki2017-03-171-4/+4
| | | | | | | | | | | | | | | | | | | | attribute-level imports are not checked by hacking module now. most noqa is used to disable warnings on attribute-level imports. This commit drops noqa for this purpose. After this, there are 8 noqa under horizon/ :) In addition to this, the following changes are made. horizon/exceptions.py: The following imports are dropped. They are not used anywhere. from django.http import HttpRequest from django.views.debug import CLEANSED_SUBSTITUTE horizon/forms/__init__.py: Some entries were missing in __all__. They are added. Change-Id: I33b504ef6c396f0675e8a340867e2ca59c77c684
* Remove extraneous vim configuration commentsHe Yongli2014-05-061-2/+0
| | | | | | | | | | | Remove vim setting: comment - # vim: tabstop=4 shiftwidth=4 softtabstop=4 at the top of source code files, except for files in openstack/common. Change-Id: I9a5c6b17c6ef7ecec601f4503dfc7b31fc72e90a Close-bug: #1229324
* Remove asserts for optional importsRadomir Dopieralski2013-11-151-3/+14
| | | | | | | | | | | | | 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
* Enable H302 checkTatiana Mazur2013-08-221-4/+4
| | | | | | | | | This patch replaces some method imports with module imports and makes H302 test enabled. Fixes bug 1188531 Change-Id: Ibfbddeaa19cbbb244da58ffd5c918c41f03a0c65
* Sort imports alphabeticallyMatthias Runge2013-06-141-1/+4
| | | | | | | | This patch also re-organizes imports to import one per line. Change-Id: Ia958e3a30a48d4308d08d51df243c1272425c316 Fixes: bug 1188529 Fixes: bug 1188537
* remove unused importsMatthias Runge2013-06-131-0/+5
| | | | | | | | | | | | In the move to make flake8 tests stricter, we need a code cleanup earlier. This removes all unused imports and also enables tests to prevent them for the future. This patch also includes the checks on __init__.py files. Change-Id: I34055803f7c4726682ac6fb95cc5b50ba761fec8 Fixes: bug 1188134
* Splits OpenStack Dashboard bits from framework app code.Gabriel Hurley2012-10-111-1/+1
| | | | | | | | | Moves everything OpenStack-specific (dashboards, apis, etc.) into the openstack_dashboard project, achieving a much cleaner separation between the project-specific code and the generic Horizon framework code. Change-Id: I7235b41d449b26c980668fc3eb4360b24508717b
* Corrections for stricter pep8 checking.Gabriel Hurley2012-06-231-5/+0
| | | | | | | | | | | | | Updates the code to reflect stricter pep8 checking standards for pep8 1.3+. Also adds a pep8 config file to silence unnecessary indentation errors. Removes the "reverse bugfix" monkeypatch since Django 1.4 is now required. Implements blueprint upgrade-pep8. Change-Id: I7343321627d8ccd1598f39323821133168a645cc
* Adds PanelGroup class and site customization hook.Gabriel Hurley2012-03-261-1/+1
| | | | | | | | | | | | * Adds a PanelGroup class and slightly reworks the way panel ordering is handled to fix bug 963550. * Adds the option to load a python module containing site customizations after the site is fully initialized, but before the URLConf is dynamically constructed. Fixes bug 965839. Change-Id: Idc5358f2db6751494bcdfc382ec3bb6af65199b9
* Require django >= 1.3.1 and rework __init__ to make installing easier.Gabriel Hurley2012-03-011-6/+6
| | | | Change-Id: I43c90755db4f9dfa4202d57b80f0b674e9a8a670
* Unifies the project packaging into one set of modules.Gabriel Hurley2012-02-291-0/+54
There are no longer two separate projects living inside the horizon repository. There is a single project now with a single setup.py, single README, etc. The openstack-dashboard/dashboard django project is now named "openstack_dashboard" and lives as an example project in the topmost horizon directory. The "horizon/horizon" directory has been bumped up a level and now is directly on the path when the root horizon directory is on your python path. Javascript media which the horizon module directly relies upon now ships in the horizon/static dir rather than openstack-dashboard/dashboard/static. All the corresponding setup, installation, build, and env scripts have been updated accordingly. Implements blueprint unified-packaging. Change-Id: Ieed8e3c777432cd046c3e0298869a9428756ab62