[Openstack] Adding panel to a dashboard - Horizon
Tim Bell
Tim.Bell at cern.ch
Mon Jun 4 20:05:27 UTC 2012
How about changing the default to be on ?
Demonstrating all the capabilities of a product while clearly documenting
(in an admin guide rather than source code) how to disable them seems to me
to be the way to showcase the software.
Tim
From: Tres Henry [mailto:tres at treshenry.net]
Sent: 04 June 2012 21:50
To: Tim Bell
Cc: Guillermo Alvarado; openstack at lists.launchpad.net
Subject: Re: [Openstack] Adding panel to a dashboard - Horizon
Keystone doesn't currently support querying for capabilities (i.e. what is
the Keystone auth backend) so Horizon defines a dict in local_settings that
can be used to specify the capabilities of Keystone in your deployment:
https://github.com/openstack/horizon/blob/master/openstack_dashboard/local/l
ocal_settings.py.example#L61
By changing "can_edit_user" value you will either turn on, or off, the
capability to edit user accounts which includes changing password:
https://github.com/openstack/horizon/blob/master/horizon/dashboards/syspanel
/users/forms.py#L111
On Jun 4, 2012, at 12:22 PM, Tim Bell wrote:
BTW, isn't the lack of option for a dashboard user to change their own
password considered as a missing functionality ?
Personally, if it was there, I'd like to turn it off (since we aim to use
Active Directory/LDAP) but for the standalone case, this would seem a
reasonable request.
Tim
From: openstack-bounces+tim.bell=cern.ch at lists.launchpad.net
[mailto:openstack-bounces+tim.bell=cern.ch at lists.launchpad.net] On Behalf Of
Guillermo Alvarado
Sent: 04 June 2012 19:48
To: openstack at lists.launchpad.net
Subject: [Openstack] Adding panel to a dashboard - Horizon
Hi everyone!
I want to add a panel to settings dashboard. This panel is named 'Password'
and here the users will be able to modify your password (This will be
programmed).
My problem is that I can not add another panel (I dont see the option
Password in the Settings dashboard). I did the following:
1.- Added a folder named password in /horizon/dashboards/settings
2.- A added the __init__.py file into password folder
3.- Added the views.py file into password folder with this content:
from django import shortcuts
def index(request):
return shortcuts.render(request, 'settings/password/password.html',
{})
4.- Added urls.py file into password folder with this content:
from django.conf.urls.defaults import patterns, url
from .views import IndexView
urlpatterns = patterns('horizon.dashboards.settings.password.views',
url(r'^$', IndexView.as_view(), name='index'),
)
5.-Added panel.py file into password folder with this content:
from django.utils.translation import ugettext_lazy as _
import horizon
from horizon.dashboards.settings import dashboard
class Password(horizon.Panel):
name = _("Password")
slug = 'password'
dashboard.Settings.register(Password)
6.- In dashboard.py file located in /horizon/dashboard/settings added
password to panels:
panels = ('user', 'project', 'ec2', 'password')
But I not see the password panel. What is the problem?
Any answer will be apreciated, thanks in advance!
Best Regards,
Guillermo Alvarado
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack at lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120604/7aa04177/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5201 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120604/7aa04177/attachment.bin>
More information about the Openstack
mailing list