<br><br><div class="gmail_quote">Le 9 février 2012 12:01, Simone Orsi <span dir="ltr"><<a href="mailto:simahawk@gmail.com">simahawk@gmail.com</a>></span> a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Gilles,<br></div></blockquote><div><br>Hi Simone,<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">

    <br>
    dumb question: did you check if your layer has been registered and
    has marked the request?<br></div></blockquote><div><br>Not that dumb ;) But of course this is one of the first things I have been investingating into.<br><br>And the various <browser:page > stuff registered for the same layer work like a charm.<br>
 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    <br>
    If it doesn't I think you can work around this by giving a custom
    name to your viewlet and add a viewlets.xml where you hide the
    original one and display yours.<br></div></blockquote><div><br>That's the fallback i'll take if I can't override the original viewlet. This is somehow "dirty" but this should work.<br><br>Thanks a lot<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"><div bgcolor="#FFFFFF" text="#000000">
    <br>
    Cheers,<br>
    SimO<div><div class="h5"><br>
    <br>
    On 09/02/12 09:18, Gilles Lenfant wrote:
    <blockquote type="cite">Le 9 février 2012 06:54, ajung <span dir="ltr"><<a href="mailto:lists@zopyx.com" target="_blank">lists@zopyx.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">
          If you need to override only the template then use z3.jbot.<br>
          <br>
        </blockquote>
        <div><br>
          Hi,<br>
          <br>
          No, I need to override only the viewlet class. z3c.jbot can't
          help me in that case.<br>
          <br>
          Best... <br>
          -- <br>
          Gilles Lenfant<br>
          <br>
        </div>
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          -aj<br>
          <br>
          <br>
          Gilles Lenfant-2 wrote<br>
          <div>
            <div>><br>
              > 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>
              > Though I carefully read and practiced the tutorial<br>
              > <a href="http://plone.org/documentation/kb/customizing-main-template-viewlets/overriding-a-class-viewletI" target="_blank">http://plone.org/documentation/kb/customizing-main-template-viewlets/overriding-a-class-viewletI</a><br>

              > always have the original Plone viewlet from
              plone.app.layout.links.<br>
              ><br>
              > Some pointers that show how I did this :<br>
              ><br>
              > My component's layer :<br>
              > <a href="https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/interfaces.py#L8" target="_blank">https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/interfaces.py#L8</a><br>

              ><br>
              > Its installation through GenericSetup works correctly
              since it shows in<br>
              > ZMI<br>
              > in the "Components" tab of the Plone site.<br>
              ><br>
              > The ZCML registration of the viewlet including that
              layer selector:<br>
              > <a href="https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/configure.zcml#L86" target="_blank">https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/configure.zcml#L86</a><br>

              ><br>
              > The viewlet class itself:<br>
              > <a href="https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/viewlets.py#L10" target="_blank">https://github.com/glenfant/aws.authrss/blob/master/src/aws/authrss/browser/viewlets.py#L10</a><br>

              ><br>
              > I'm stuck finding why this does not work as expected
              (the original viewlet<br>
              > is rendered in place of my custom viewlet). Any help
              is welcome. And so<br>
              > many thanks by advance for any pointer.<br>
              ><br>
              > --<br>
              > Gilles Lenfant<br>
              ><br>
            </div>
          </div>
          > _______________________________________________<br>
          > Product-Developers mailing list<br>
          > <a href="mailto:Product-Developers@.plone" target="_blank">Product-Developers@.plone</a><br>
          > <a href="https://lists.plone.org/mailman/listinfo/plone-product-developers" target="_blank">https://lists.plone.org/mailman/listinfo/plone-product-developers</a><br>
          ><br>
          <span><font color="#888888"><br>
              <br>
              --<br>
              View this message in context: <a href="http://plone.293351.n2.nabble.com/Stuck-overriding-a-stock-Ploine-viewlet-tp7266769p7268283.html" target="_blank">http://plone.293351.n2.nabble.com/Stuck-overriding-a-stock-Ploine-viewlet-tp7266769p7268283.html</a><br>

              Sent from the Product Developers mailing list archive at
              Nabble.com.<br>
            </font></span>
          <div>
            <div>_______________________________________________<br>
              Product-Developers mailing list<br>
              <a href="mailto:Product-Developers@lists.plone.org" target="_blank">Product-Developers@lists.plone.org</a><br>
              <a href="https://lists.plone.org/mailman/listinfo/plone-product-developers" target="_blank">https://lists.plone.org/mailman/listinfo/plone-product-developers</a><br>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Product-Developers mailing list
<a href="mailto:Product-Developers@lists.plone.org" target="_blank">Product-Developers@lists.plone.org</a>
<a href="https://lists.plone.org/mailman/listinfo/plone-product-developers" target="_blank">https://lists.plone.org/mailman/listinfo/plone-product-developers</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
Product-Developers mailing list<br>
<a href="mailto:Product-Developers@lists.plone.org">Product-Developers@lists.plone.org</a><br>
<a href="https://lists.plone.org/mailman/listinfo/plone-product-developers" target="_blank">https://lists.plone.org/mailman/listinfo/plone-product-developers</a><br>
<br></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>