[Silva-general] inserting documents into layout_macro under another name?

Mallow Geno princemallow at gmail.com
Tue Aug 14 23:04:52 CEST 2007


Hello,
   I'm close to finalizing our website and I need help with these last
little bits as soon as possible if possible :)

I've made our layout using the  layout_macro and made everything work fine,
now I want to copy this file and put it in another folder and rename it to
something else. I'm using the :
   <div id="pubart">
      <metal:slot define-slot="act">
        <tal:def define="actualite here/actualite">
          <tal:insert define="view_method options/view_method"
            content="structure python:getattr(actualite, view_method)()">
          </tal:insert>
        </tal:def>
      </metal:slot>
    </div>
to insert a document containing the news viewer from the inline news viewer
plug in.
(other places on the site will have the original thing in order to show the
actual article but this is to distinguish one section from the next)

Anyways the issue that arises is once this is moved and rename it produces
this error:
Error Type: TraversalError Error Value: ({'args': ()}, 'view_method')Given
that in the above I'm using "here" as a reference how would I go about
getting it to get the correct structure?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.infrae.com/pipermail/silva-general/attachments/20070814/b2ee7f27/attachment.htm 


More information about the silva-general mailing list