Adds a docs example for a customization module.

Fixes bug 1032430.

Change-Id: I8ad152c44109a8bf9d551c46b16506aaeeda2ee2
This commit is contained in:
Gabriel Hurley 2012-09-07 15:45:39 -07:00
parent 85b0bfe68e
commit 4e6107c5e4

View File

@ -49,6 +49,20 @@ python path notation. Example::
"customization_module": "my_project.overrides"
}
You can do essentially anything you like in the customization module. For
example, you could change the name of a panel::
from django.utils.translation import ugettext_lazy as _
import horizon
# Rename "OpenStack Credentials" to "OS Credentials"
settings = horizon.get_dashboard("settings")
project_panel = settings.get_panel("project")
project_panel.name = _("OS Credentials")
Other common options might include removing default panels, adding or
changing permissions on panels and dashboards, etc.
Button Icons
============