[Zope] Problems with GET method
Max M
maxm@mxm.dk
Fri, 21 Jun 2002 21:14:43 +0200
Nico de Boer wrote:
>I've first turned the QUERY_STRING into a list (splitpath), that I
>join with dots (training).
>
>So I get the following:
>
>training = path.to.training
>
>And now I want to do:
>
><dtml-with "training">
>
>what's according to me the same as:
>
><dtml-with "path.to.training">
>
Ah ok ... now I understand. You are doing it just a little wrong. You
can traverse Zope with a path from code directly. You must use the
restrictedTraverse() method..
Asuming that: QUERY_STRING='path/to/training'
You can just do it like:
<dtml-call "REQUEST.set('training',
getPhysicalRoot().restrictedTraverse(QUERY_STRING))">
<dtml.with training>
... etc.
regards Max M
--
"Sorry I would Really Like To Help More On This Project,
But Am To Busy Doing Paid Work On A Tight Deadline"
Max M