[Zope] manage_addFile - getting DTML method results as file input

Jonathan Hobbs toolkit at magma.ca
Fri Jul 30 07:24:55 EDT 2004


From: "David Siedband" <david at calteg.org>
> I have a DTML method 'resource_xml' that produces an XML file.  I'm
> want to apply this method to the records returned by a zSQL
> 'selectExportDocs' and save each the XML for each one.
>
> <dtml-call "REQUEST.set('file_type', 'text/xml' )">
>    <dtml-in "queries.selectExportDocs()">
>      <dtml-in "resource_xml()">
>        <dtml-call "this().manage_addFile(REQUEST['id'], file,
> REQUEST['title'])">
>      </dtml-in>
>    </dtml-in>
>
> How do I get the xml text returned by the method into the file input of
> manage_addFile?

Have you tried:

<dtml-call "this().manage_addFile(REQUEST['id'], _['sequence-item'],
REQUEST['title'])">


HTH

Jonathan




More information about the Zope mailing list