[Zope] object id's and request vars

Lieven Van Acker lieven@elisa.be
16 Jan 2003 11:28:56 +0100


Hi,

I need to include a fragment identified by a request var in a PT . This
is something I tried. I believe there must be an easier way to achieve
this. 

    <SPAN tal:condition="exists:request/form/var"
       tal:repeat="x python:here.objectItems()"> 
      <P tal:condition="python:x[0]==request.form['var']"
         tal:define="y python:x[1]"
         tal:replace="structure y">
      </P>
    </SPAN>

where the request is issued as
    <A tal:attributes="href python:here.id + '?var=test' "> inluded </A>

Regards,

Lieven
-- 
Lieven Van Acker <lieven@elisa.be>
ELiSA