Re: Best way to modify the @@personal-preferences formular

Sébastien VINOT <sebastien.vinot-VUuyK1MdVaV2gwGH1w/[email protected]> Fri, 01 May 2015 16:14:23 +0200
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
Thanks to you and Daniel,

This help me and now it works like a charm !



Le 01/05/2015 15:17, Nathan Van Gheem a écrit :
> Also: http://docs.plone.org/develop/plone/views/layers.html
>
> On Fri, May 1, 2015 at 5:58 AM, Daniel Jowett 
> <[email protected] <mailto:[email protected]>> wrote:
>
>     You are *not* overriding the personal-preferences view, because:
>
>     for="*" is /less specific/ than the registration
>     <https://github.com/plone/plone.app.users/blob/master/plone/app/users/browser/configure.zcml#L38>
>     which specifies ."... INavigationRoot"
>
>     You need to add a layer to make it /more specific.
>
>     /Oh, and you probably want the permission to match the original
>     registration too,
>     otherwise anyone could see your preferences.
>
>     This
>     <http://stackoverflow.com/questions/19966319/extending-the-personal-preferences-page>
>     looks like a good answer on SO.
>
>     HTH,
>
>     Daniel
>
>
>
>
>
>     On 01/05/15 10:12, Sébastien VINOT wrote:
>>     That's a good idea but I have a problem.
>>
>>     I've added on my configure.zcml:
>>
>>       <browser:view
>>           name="personal-preferences"
>>           class=".user.viewPrefs"
>>           for="*"
>>           permission="zope2.View" />
>>
>>       <browser:view
>>           name="personal-preferences2"
>>           class=".user.viewPrefs"
>>           for="*"
>>           permission="zope2.View" />
>>
>>     After reinstalling the module the page /personal-preferences2
>>     displays what I want but the /personal-preferences continue to
>>     display the original page. How can I override this ?
>>
>>     Sebastien
>>
>>
>>     Le 30/04/2015 08:55, Jean-Sébastien Mansart a écrit :
>>>     Nathan is right, you should override the view in your product,
>>>     this way you will have control over updates.
>>>
>>>     *Jean-Sébastien Mansart *- Développeur Web
>>>     Email : jean-sebastien.mansart-WVG1LGuJuVy7W+FGuQ2g6tBPR1lH4CV8@public.gmane.org
>>>     <mailto:jean-sebastien.mansart-WVG1LGuJuVy7W+FGuQ2g6tBPR1lH4CV8@public.gmane.org>
>>>     Tel : 04 79 26 27 47
>>>
>>>     *Bayard Service Edition *
>>>     Savoie Technolac - House Boat
>>>     BP308 - 73377 Le Bourget du Lac Cedex
>>>     www.bayardserviceweb.com <http://www.bayardserviceweb.com>
>>>
>>>     Le 30/04/2015 03:16, Nathan Van Gheem a écrit :
>>>>     Are you just using jquery to do tweaks to the form after it's
>>>>     loaded? I can't think of anything special to recommend. I'm not
>>>>     sure how to predict any update changes for you either.
>>>>
>>>>     You could just override the @@personal-preferences view
>>>>     completely and then you would know you control it through
>>>>     upgrades.
>>>>
>>>>     That's all I can offer without any more detail about your use case.
>>>>
>>>>     On Wed, Apr 29, 2015 at 9:18 AM, Sébastien VINOT
>>>>     <sebastien.vinot-VUuyK1MdVaV2gwGH1w/[email protected]
>>>>     <mailto:sebastien.vinot-VUuyK1MdVaV2gwGH1w/[email protected]>> wrote:
>>>>
>>>>         Hello,
>>>>
>>>>         I'd like to customize the "/@@personal-preferences"
>>>>         formular aspecially
>>>>         in order to add some jQuery nice stuff (some data should
>>>>         forbid others).
>>>>
>>>>         How can I modify this form without destroying everything
>>>>         aspecially
>>>>         during updates ?
>>>>
>>>>         Sebastien
>>>>
>>>>         ------------------------------------------------------------------------------
>>>>         One dashboard for servers and applications across
>>>>         Physical-Virtual-Cloud
>>>>         Widest out-of-the-box monitoring support with 50+ applications
>>>>         Performance metrics, stats and reports that give you
>>>>         Actionable Insights
>>>>         Deep dive visibility with transaction tracing using APM
>>>>         Insight.
>>>>         http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>         _______________________________________________
>>>>         Plone-Users mailing list
>>>>         [email protected]
>>>>         <mailto:[email protected]>
>>>>         https://lists.sourceforge.net/lists/listinfo/plone-users
>>>>
>>>>
>>>>
>>>>
>>>>     -- 
>>>>     Nathan Van Gheem
>>>>     Solutions Architect
>>>>     Wildcard Corp
>>>>
>>>>
>>>>     ------------------------------------------------------------------------------
>>>>     One dashboard for servers and applications across Physical-Virtual-Cloud
>>>>     Widest out-of-the-box monitoring support with 50+ applications
>>>>     Performance metrics, stats and reports that give you Actionable Insights
>>>>     Deep dive visibility with transaction tracing using APM Insight.
>>>>     http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>>
>>>>
>>>>     _______________________________________________
>>>>     Plone-Users mailing list
>>>>     [email protected]  <mailto:[email protected]>
>>>>     https://lists.sourceforge.net/lists/listinfo/plone-users
>>>
>>>
>>>
>>>     ------------------------------------------------------------------------------
>>>     One dashboard for servers and applications across Physical-Virtual-Cloud
>>>     Widest out-of-the-box monitoring support with 50+ applications
>>>     Performance metrics, stats and reports that give you Actionable Insights
>>>     Deep dive visibility with transaction tracing using APM Insight.
>>>     http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>
>>>
>>>     _______________________________________________
>>>     Plone-Users mailing list
>>>     [email protected]  <mailto:[email protected]>
>>>     https://lists.sourceforge.net/lists/listinfo/plone-users
>>
>>
>>
>>     ------------------------------------------------------------------------------
>>     One dashboard for servers and applications across Physical-Virtual-Cloud
>>     Widest out-of-the-box monitoring support with 50+ applications
>>     Performance metrics, stats and reports that give you Actionable Insights
>>     Deep dive visibility with transaction tracing using APM Insight.
>>     http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>
>>
>>     _______________________________________________
>>     Plone-Users mailing list
>>     [email protected]  <mailto:[email protected]>
>>     https://lists.sourceforge.net/lists/listinfo/plone-users
>
>     -- 
>     Daniel Jowett
>
>     *Jowett Enterprises Ltd*
>     Tel: 0333 3 553 773
>     Mobile: 07870 667 126
>     [email protected] <mailto:[email protected]>
>     www.jowettenterprises.com <http://www.jowettenterprises.com>
>
>     ------------------------------------------------------------------------------
>     One dashboard for servers and applications across
>     Physical-Virtual-Cloud
>     Widest out-of-the-box monitoring support with 50+ applications
>     Performance metrics, stats and reports that give you Actionable
>     Insights
>     Deep dive visibility with transaction tracing using APM Insight.
>     http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>     _______________________________________________
>     Plone-Users mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/plone-users
>
>
>
>
> -- 
> Nathan Van Gheem
> Solutions Architect
> Wildcard Corp
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>
>
> _______________________________________________
> Plone-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plone-users

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users