download a file in a specific folder in the filesystem
Dears, I would to know how to download a file generated by a program outside zope. I mean, I would like to download a file via zope webserver and such a file is located outside the zope space. Since zope treats everything as a object I have know idea of how "importing" the link to a file inside zope space. I would thank in advance any help. Cheers, Alan -- Alan Wilter S. da Silva, D.Sc. - Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK.
----- Original Message ----- From: "Alan" <alanwilter@gmail.com> To: <zope@zope.org> Sent: Thursday, August 24, 2006 11:00 AM Subject: [Zope] download a file in a specific folder in the filesystem
Dears,
I would to know how to download a file generated by a program outside zope. I mean, I would like to download a file via zope webserver and such a file is located outside the zope space. Since zope treats everything as a object I have know idea of how "importing" the link to a file inside zope space.
If you want to store a file on the local filesystem and be able to access it via zope then you could look at localfs: http://sourceforge.net/projects/localfs Jonathan
If you just want the file to be downloadable from say a web page served by zope you could make an object on your zope system (say a page template) that renders a page with a link to the file you wish to make available. The file would have to accessible to your web server. On 24 Aug 2006, at 16:00, Alan wrote:
Dears,
I would to know how to download a file generated by a program outside zope. I mean, I would like to download a file via zope webserver and such a file is located outside the zope space. Since zope treats everything as a object I have know idea of how "importing" the link to a file inside zope space.
I would thank in advance any help.
Cheers, Alan
-- Alan Wilter S. da Silva, D.Sc. - Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK.
Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Richard Phelps Senior Lecturer in Nephrology Renal Autoimmunity Group, MRC Centre for Inflammation Research, The Queen's Medical Research Institute 47 Little France Crescent Edinburgh EH16 4TJ Tel (44) 131 242 9164 Fax (44) 131 242 9168
participants (3)
-
Alan -
Jonathan -
Richard Phelps