[Zope] DMTL-document as parameter to DMTL

Dieter Maurer dieter@handshake.de
Fri, 17 Jan 2003 21:51:06 +0100


FFFHans Sandsdalen wrote at 2003-1-17 09:58 +0100:
 >  ...
 >    <dtml-var expr="REQUEST.file"><br>
 > 
 >    <dtml-with expr="REQUEST.file">
 >       Title: <dtml-var title><br>
 >       Id   : <dtml-var id><br>
 > ...
 > and that way I am able to get the file name. But there are some errors
 > in my code, because the output is not what I expexted:
 > 
 >    entry_1037698423 
 >    Title: Entry_1037698423
 >    Id : news
 > 
 > The entry_1037698423 file has a title, and the id should be the same as
 > <dtml-var expr="REQUEST.file">.
I expect, "REQUEST.file" is a "ZPublisher.HTTPRequest.FileUpload" instance
(a file you have uploaded)?

In this case, it has neither an id nor a title.
You get the one from the enclosing context.


Dieter