Le 9 février 2012 16:54, Raphael Ritz <span dir="ltr"><<a href="mailto:raphael.ritz@gmail.com">raphael.ritz@gmail.com</a>></span> a écrit :<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2/8/12 7:05 PM, Gilles Lenfant wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Sorry for the disturbance, but I'm actually stuck overriding a standard<br>
viewlet of Plone (4.1): The "plone.links.RSS" that goes in the HTML head.<br>
<br>
</blockquote>
<br></div>
[..]<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I'm stuck finding why this does not work as expected (the original<br>
viewlet is rendered in place of my custom viewlet). Any help is welcome.<br>
And so many thanks by advance for any pointer.<br>
</blockquote>
<br></div>
Hi Gilles,<br>
<br>
IIRC <a href="http://pypi.python.org/pypi/collective.blog.feeds" target="_blank">http://pypi.python.org/pypi/<u></u>collective.blog.feeds</a> does something<br>
similar. Maybe it helps to have an example (or maybe it's broken for<br>
Pone 4.1 as well?)<br></blockquote><div><br>Hi Raphael,<br><br>collective.blog.feeds registers a viewlet with a *new* name (collective.blog.feeds.feedsviewlet) in plone.app.layout.viewlets.interfaces.IHtmlHeadLinks with manager no layer condition (so IDefaultBrowserLayer rules). It has no viewlets.xml so the new viewlet is automatically added at top of the plone.htmlhead manager.<br>
<br>In my case, I need to replace the stock Plone viewlet class and name by my own.<br><br>I can't understand because I do exactly the same way I did for overriding stock Plone 3.3 viewlets and it does not work (actually Plone 4.1). Is it a bug, a new feature, or something else that's not documented. Yet I read carefully the new plone developer manual that's supposed to be Plone 4.1 ready <a href="http://collective-docs.readthedocs.org/en/latest/views/viewlets.html">http://collective-docs.readthedocs.org/en/latest/views/viewlets.html</a><br>
<br>I'll make a good old monkey patch to the standard RSS viewlet today, and find time to make a minimal product with this use case, and file a new issue to Plone if this is confirmed.<br><br>Best...<br>-- <br>Gilles<br>
 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Raphael<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
--<br>
Gilles Lenfant<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Product-Developers mailing list<br>
</div><a href="mailto:Product-Developers@lists.plone.org" target="_blank">Product-Developers@lists.<u></u>plone.org</a><br>
<a href="https://lists.plone.org/mailman/listinfo/plone-product-developers" target="_blank">https://lists.plone.org/<u></u>mailman/listinfo/plone-<u></u>product-developers</a><br>
</blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
______________________________<u></u>_________________<br>
Product-Developers mailing list<br>
<a href="mailto:Product-Developers@lists.plone.org" target="_blank">Product-Developers@lists.<u></u>plone.org</a><br>
<a href="https://lists.plone.org/mailman/listinfo/plone-product-developers" target="_blank">https://lists.plone.org/<u></u>mailman/listinfo/plone-<u></u>product-developers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><span></span><span></span>-- <br>Gilles LENFANT<br>Ingénieur avant-vente - Architecte senior<br>ALTER WAY SOLUTIONS<br>T : 01 78 15 24 00<br>F : 01 46 02 44 04<br>
<br>Téléchargez notre nouveau livre blanc "Python, le développement autrement"<br><a href="http://www.alterway.fr/publications/python-le-developpement-autrement" target="_blank">http://www.alterway.fr/publications/python-le-developpement-autrement</a><br>
<br>1 rue Royal, Bat. D<br>227, les Bureaux de la Colinne<br>92210 Saint Cloud<br><a href="http://www.alterway.fr/solutions" target="_blank">http://www.alterway.fr/solutions</a><br>