[Zope] Problems with GET method
Nico de Boer
nico@nfg.nl
21 Jun 2002 14:24:56 +0200
Hi,
I'm working on a ZClass for Trainings. The visitors of the site have
to be able to fill in a form online to join a training.
At top of the form there is first shown some information about the
training. I want to show this info with the GET method of a hyperlink.
Like this:
<a href="/form/main?<dtml-var PATH_INFO>" methods="GET">Online
sign-up</a>
The following thing to do is split the PATH_INFO variable and join it
with dots:
<dtml-let splitpath="_.string.split(QUERY_STRING,'/')"
training="_.string.join(splitpath[1:],'.')">
Then I want to get the attributes of the training with the
dtml-with tag:
<dtml-with "training">
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr><td>Institute:</td><td><dtml-var institute></td></tr>
<tr><td>Location:</td><td><dtml-var location></td></tr>
<tr><td>Title training:</td><td><dtml-var title></td></tr>
<tr><td>Start date:</td><td><dtml-var date_start></td></tr>
<tr><td>Stop date:</td><td><dtml-var date_stop></td></tr>
</table>
</dtml-with>
</dtml-let>
Institute, location etc are attributes of the ZClass Training.
The 'with' tag doesn't work; I get KeyErrors.
Can somebody help me?
Greetz Nico