Ask Your Question
1

How to modify panel name on Openstack?

asked 2013-06-13 07:16:03 -0500

Ph4nToM gravatar image

updated 2013-06-13 10:13:19 -0500

Hello, I try to modify the name "Instances" to "Virtual Machines" in the web page of Openstack. image description

I'm little lost in directories of Openstack I think is easy to do but I don't know where is the code..

I will try tomorrow to edit file /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py

I'm sure that will work, but If I use the following tutorial, I say that I've to add the lines:

from django.utils.translation import ugettext_lazy as _

import horizon

# Rename "User Settings" to "User Options"
settings = horizon.get_dashboard("settings")
user_panel = settings.get_panel("user")
user_panel.name = _("User Options")

The question IS:

===> I supose I have to do that in: horizon/openstack-dashboard/local/local_settings.py

it's exact?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-06-13 07:35:43 -0500

fifieldt gravatar image

Please refer to the Horizon Customisation guide: http://docs.openstack.org/developer/horizon/topics/customizing.html

edit flag offensive delete link more

Comments

Thanks for your help, I updated my post

Ph4nToM gravatar imagePh4nToM ( 2013-06-13 10:11:01 -0500 )edit

Thanks! it works

Ph4nToM gravatar imagePh4nToM ( 2013-06-19 08:19:49 -0500 )edit
3

answered 2013-06-13 07:35:31 -0500

jpichon gravatar image

updated 2013-06-13 10:19:21 -0500

This particular panel name is defined in openstack_dashboard/dashboards/project/instances/panel.py but I would recommend using the following tutorial to modify the name, so that your changes don't get overwritten when you upgrade:

http://docs.openstack.org/developer/horizon/topics/customizing.html#modifying-existing-dashboards-and-panels

With regard to your edited question, you can do the modification in a new Python file and place it wherever you like. The HORIZON_CONFIG dictionary in your local_settings file needs to be updated with a "customization_module": "my_project.overrides" attribute as indicated in the linked document, where my_project.overrides is the new file you created with your amendments.

edit flag offensive delete link more

Comments

Thanks for your help, I will test that, and post the results.

Ph4nToM gravatar imagePh4nToM ( 2013-06-13 10:23:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-06-13 07:16:03 -0500

Seen: 85 times

Last updated: Jun 13 '13