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

Sébastien VINOT <sebastien.vinot-VUuyK1MdVaV2gwGH1w/[email protected]> Fri, 01 May 2015 11:12:07 +0200
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
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]
>> 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

------------------------------------------------------------------------------
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