[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Appendix B:
API Reference
webmaster at zope.org
webmaster at zope.org
Mon May 24 05:16:12 EDT 2004
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixB.stx#2-124
---------------
A File is a Zope object that contains file content. A File object
can be used to upload or download file information with Zope.
% Anonymous User - Nov. 26, 2003 4:08 am:
What properties do files have?
How do you access the most recent modification time of a file using a Python Script?
(You've explained earlier how to do it with dtml using bobobase_modification_time, but for some reason the
following doesn't work with python:
return context.file.boboso_modification_time
% Anonymous User - Nov. 26, 2003 4:08 am:
What properties do files have?
How do you access the most recent modification time of a file using a Python Script?
(You've explained earlier how to do it with dtml using bobobase_modification_time, but for some reason the
following doesn't work with python:
return context.file.bobobase_modification_time
% Anonymous User - Dec. 15, 2003 11:33 pm:
try this:
return context.file.bobobase_modification_time()
bobobase_modification_time() is a method, not a data attribute.
It should be clearly described here somewhere, but AFAICT it is not.
% Anonymous User - May 9, 2004 7:25 am:
methods:
* get_size()
Returns the size in bytes (getSize() is deprecated)
Python properties:
* data
Access to the underlying binary data
% Anonymous User - May 24, 2004 5:16 am:
I am wondering how to del a file. I can only find addFile method in this API.
More information about the ZDP
mailing list