Adds PanelGroup class and site customization hook.
* 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
This commit is contained in:
@@ -40,3 +40,6 @@ Panel
|
||||
|
||||
.. autoclass:: Panel
|
||||
:members:
|
||||
|
||||
.. autoclass:: PanelGroup
|
||||
:members:
|
||||
|
||||
@@ -28,6 +28,28 @@ To override the OpenStack Logo image, replace the image at the directory path
|
||||
|
||||
The dimensions should be ``width: 108px, height: 121px``.
|
||||
|
||||
Modifying Existing Dashboards and Panels
|
||||
========================================
|
||||
|
||||
If you wish to alter dashboards or panels which are not part of your codebase,
|
||||
you can specify a custom python module which will be loaded after the entire
|
||||
Horizon site has been initialized, but prior to the URLconf construction.
|
||||
This allows for common site-customization requirements such as:
|
||||
|
||||
* Registering or unregistering panels from an existing dashboard.
|
||||
* Changing the names of dashboards and panels.
|
||||
* Re-ordering panels within a dashboard or panel group.
|
||||
|
||||
To specify the python module containing your modifications, add the key
|
||||
``customization_module`` to your ``settings.HORIZON_CONFIG`` dictionary.
|
||||
The value should be a string containing the path to your module in dotted
|
||||
python path notation. Example::
|
||||
|
||||
HORIZON_CONFIG = {
|
||||
"customization_module": "my_project.overrides"
|
||||
}
|
||||
|
||||
|
||||
Button Icons
|
||||
============
|
||||
|
||||
|
||||
Reference in New Issue
Block a user