Class: File | Zope-2.2.1-src/lib/python/Products/OFSP/help/File.py | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A File is a Zope object that contains file content. A File object can be used to upload or download file information with Zope. Examples: Using a File object in Zope is easy. The most common usage is to display the contents of a file object in a web page. This is done by simply referencing the object from DTML: <dtml-var standard_html_header> <dtml-var FileObject> <dtml-var standard_html_footer> A more complex example is presenting the File object for download by the user. The next example displays a link to every File object in a folder for the user to download: <dtml-var standard_html_header> <ul> <dtml-in "ObjectValues('File')"> <li><a href="<dtml-var absolute_url>"><dtml-var id></a></li> </dtml-in> </ul> <dtml-var standard_html_footer> In this example, the Also see ObjectManager for details on the
|