Re: [Zope] How to present a download button...
[...] > > I am having trouble with a non standard download method. I want to provide > > a download link to a file, but not the standard one, because I would get > > the id as the filename. The id is a random value and thus not suitable for > > the customer. The real filename is saved in the title property. > > > > So I created a dtml method "download" like this one: > > > > > > >'inline;filename='+title)"> > > > Use > > <-- renders the file content --> > Hmmm... This gives me a KeyError on file. Is this a new feature of Zope 2.2 ? I'm still with 2.1.6. Oh well... :-) Thanks anyway. - Andreas ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to present a download button...
Andreas Elvers writes: > I am having trouble with a non standard download method. I want to provide > a download link to a file, but not the standard one, because I would get > the id as the filename. The id is a random value and thus not suitable for > the customer. The real filename is saved in the title property. > > So I created a dtml method "download" like this one: > > > 'inline;filename='+title)"> > Use <-- renders the file content --> Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to present a download button...
Hi, I am having trouble with a non standard download method. I want to provide a download link to a file, but not the standard one, because I would get the id as the filename. The id is a random value and thus not suitable for the customer. The real filename is saved in the title property. So I created a dtml method "download" like this one: