<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><base href="x-msg://170/"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>How about changing the default to be on ?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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…<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Tim<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Tres Henry [mailto:tres@treshenry.net] <br><b>Sent:</b> 04 June 2012 21:50<br><b>To:</b> Tim Bell<br><b>Cc:</b> Guillermo Alvarado; openstack@lists.launchpad.net<br><b>Subject:</b> Re: [Openstack] Adding panel to a dashboard - Horizon<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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: <a href="https://github.com/openstack/horizon/blob/master/openstack_dashboard/local/local_settings.py.example#L61">https://github.com/openstack/horizon/blob/master/openstack_dashboard/local/local_settings.py.example#L61</a><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>By changing "can_edit_user" value you will either turn on, or off, the capability to edit user accounts which includes changing password: <a href="https://github.com/openstack/horizon/blob/master/horizon/dashboards/syspanel/users/forms.py#L111">https://github.com/openstack/horizon/blob/master/horizon/dashboards/syspanel/users/forms.py#L111</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Jun 4, 2012, at 12:22 PM, Tim Bell wrote:<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>BTW, isn’t the lack of option for a dashboard user to change their own password considered as a missing functionality ?</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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.</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Tim</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;border-width:initial;border-color:initial'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;border-width:initial;border-color:initial'><div><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span class=apple-converted-space><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><a href="mailto:openstack-bounces+tim.bell=cern.ch@lists.launchpad.net">openstack-bounces+tim.bell=cern.ch@lists.launchpad.net</a><span class=apple-converted-space> </span>[mailto:openstack-bounces+tim.bell=<a href="mailto:cern.ch@lists.launchpad.net">cern.ch@lists.launchpad.net</a>]<span class=apple-converted-space> </span><b>On Behalf Of<span class=apple-converted-space> </span></b>Guillermo Alvarado<br><b>Sent:</b><span class=apple-converted-space> </span>04 June 2012 19:48<br><b>To:</b><span class=apple-converted-space> </span><a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br><b>Subject:</b><span class=apple-converted-space> </span>[Openstack] Adding panel to a dashboard - Horizon</span><o:p></o:p></p></div></div></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>Hi everyone!<o:p></o:p></p></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>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).<o:p></o:p></p></div></div><div><div><p class=MsoNormal>My problem is that I can not add another panel (I dont see the option Password in the Settings dashboard). I did the following:<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>1.- Added a folder named password in /horizon/dashboards/settings <o:p></o:p></p></div></div><div><div><p class=MsoNormal>2.- A added the __init__.py file into password folder<o:p></o:p></p></div></div><div><div><p class=MsoNormal>3.- Added the views.py file into password folder with this content:<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal> from django import shortcuts<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal> def index(request):<o:p></o:p></p></div></div><div><div><p class=MsoNormal> return shortcuts.render(request, 'settings/password/password.html', {})<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>4.- Added urls.py file into password folder with this content:<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><div><p class=MsoNormal> from django.conf.urls.defaults import patterns, url<o:p></o:p></p></div></div><div><div><p class=MsoNormal> from .views import IndexView<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal> urlpatterns = patterns('horizon.dashboards.settings.password.views',<o:p></o:p></p></div></div><div><div><p class=MsoNormal> url(r'^$', IndexView.as_view(), name='index'),<o:p></o:p></p></div></div><div><div><p class=MsoNormal> )<o:p></o:p></p></div></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>5.-Added panel.py file into password folder with this content:<o:p></o:p></p></div></div><div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal> from django.utils.translation import ugettext_lazy as _<o:p></o:p></p></div></div><div><div><p class=MsoNormal> import horizon<o:p></o:p></p></div></div><div><div><p class=MsoNormal> from horizon.dashboards.settings import dashboard<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal> class Password(horizon.Panel):<o:p></o:p></p></div></div><div><div><p class=MsoNormal> name = _("Password")<o:p></o:p></p></div></div><div><div><p class=MsoNormal> slug = 'password'<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal> dashboard.Settings.register(Password)<o:p></o:p></p></div></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>6.- In dashboard.py file located in /horizon/dashboard/settings added password to panels:<o:p></o:p></p></div></div><div><div><p class=MsoNormal> panels = ('user', 'project', 'ec2', 'password')<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>But I not see the password panel. What is the problem?<o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal><b>Any answer will be apreciated, thanks in advance!</b><o:p></o:p></p></div></div><div><div><p class=MsoNormal> <o:p></o:p></p></div></div><div><div><p class=MsoNormal>Best Regards,<o:p></o:p></p></div></div><div><div><p class=MsoNormal>Guillermo Alvarado<o:p></o:p></p></div></div></div><p class=MsoNormal>_______________________________________________<br>Mailing list:<span class=apple-converted-space> </span><a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to :<span class=apple-converted-space> </span><a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe :<span class=apple-converted-space> </span><a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help :<span class=apple-converted-space> </span><a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>