[Zope] REQUEST[] problem

Oliver Frommel oliver@aec.at
Fri, 22 Oct 1999 18:35:05 +0200 (CEST)


Hello,

after i figured out most of the namespace issues (thanks again) there's still
a problem left. I want to use my DTML method as a backend to a form input
page, where I can enter the destination folder(s), i.e. I want to make the
destination of the cloned object dependent on a (REQUEST) variable.

when i have a structure like this:

/
/templ/link (DTML doc)
/m945/process (DTML meth.)
/sendung/x/
        /y/

the following works (in /m945/process) and clones the "link" object to the
folder "/sendung/y" as expected:

 <dtml-with sendung>
  <dtml-with y>
   <dtml-with "manage_clone(templ.link, ZopeTime().Time(), REQUEST)">
   <dtml-call "manage_changeProperties(
           title = REQUEST['url'],
           text = REQUEST['text'],
           url = REQUEST['url']
    )"> 
   </dtml-with>
  </dtml-with>
 </dtml-with>

When I replace the variable in the second dtml-if tag I get the object cloned
in the wrong folder ("sendung") although the value if REQUEST['sdg'] is "y":

 <dtml-with sendung>
  DEBUG: REQUEST['sdg'] = <dtml-var "REQUEST['sdg']"><br>
  <dtml-with "REQUEST['sdg']">
   <dtml-with "manage_clone(templ.link, ZopeTime().Time(), REQUEST)">
   <dtml-call "manage_changeProperties(
           title = REQUEST['url'],
           text = REQUEST['text'],
           url = REQUEST['url']
    )">
   </dtml-with>
  </dtml-with>
 </dtml-with>

what am I doing wrong this time?

Oliver