[Zope] DTML method to add a folder and put image inside

John Verzani verzani@postbox.csi.cuny.edu
07 Jul 2000 10:45:53 -0500


Zope has me stumped.

I want to make a _simple_ form and process to add a folder then insert 
into that folder some properties and an image. Here is what I am
trying with my DTML method for processing the form request:


<dtml-call "manage_addFolder(REQUEST['id'],REQUEST['title'])">
<dtml-with "REQUEST['id']">
<dtml-if image>
  <dtml-call "manage_addImage('image',image)">
</dtml-if>

<dtml-call "manage_addProperty('example',example,'text')">

</dtml-with>

<dtml-call "RESPONSE.redirect(URL1+'/manage_workspace')">


I thought by using the <dtml-with> and the folder id that the
subsequent manaage_add* would add to the newly created folder. I know
I'm on the right track for when I hardcode the folder name (replace
REQUEST['id'] with a string) what I want to do works.

Thanks for any help.


-- 
....................................................................
.  John Verzani                  mailto:verzani@math.csi.cuny.edu  .
.  Dept. of Mathematics      http://www.math.csi.cuny.edu/~verzani .
.  City University of New York                 tel: (718) 982-3623 .
.  College of Staten Island                    fax: (718) 982-3631 .
.  Staten Island, NY 10314                                         .
....................................................................