[ZPT] Tags are URL ecaped when calling a script from ZPT

Damir Bartakovic damir@stud.fbi.fh-darmstadt.de
Wed, 23 Jan 2002 02:59:58 +0100 (CET)


Hi there,

Following problem,

I have a small PYTHON Script "fetch_companies" which I would like to use
in several ZPTs:

print '<select name="fk_Com_CompanyID"> \
      <option value="" />select \
      <div tal:repeat="comp here/Companies/SearchMethod"> \
        <option value="" tal:attributes="value comp/pk_com_companyid"/> <div tal:replace="comp/com_name" /> \
      </div> \
    </select>'

return printed


Now I try to call it from a ZPT:
<div tal:replace="here/fetch_companies">Here goes the company</div>

Unfortunately the tags are escaped to &lt; and &gt;
How can I prevent this?

Or is there a another solution for calling pieces of a ZPT-Code?

Greetings
Damir