[Product-Developers] Stuck overriding a stock Ploine viewlet...

Gilles Lenfant gilles.lenfant at alterway.fr
Wed Feb 8 18:05:01 UTC 2012


Hi,

Sorry for the disturbance, but I'm actually stuck overriding a standard
viewlet of Plone (4.1): The "plone.links.RSS" that goes in the HTML head.

Though I carefully read and practiced the tutorial
http://plone.org/documentation/kb/customizing-main-template-viewlets/overriding-a-class-viewletI
always have the original Plone viewlet from plone.app.layout.links.

Some pointers that show how I did this :

My component's layer :
https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/interfaces.py#L8

Its installation through GenericSetup works correctly since it shows in ZMI
in the "Components" tab of the Plone site.

The ZCML registration of the viewlet including that layer selector:
https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/configure.zcml#L86

The viewlet class itself:
https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/viewlets.py#L10

I'm stuck finding why this does not work as expected (the original viewlet
is rendered in place of my custom viewlet). Any help is welcome. And so
many thanks by advance for any pointer.

-- 
Gilles Lenfant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20120208/c87b2aa5/attachment.html>


More information about the Product-Developers mailing list