[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Appendix B: API Reference

webmaster at zope.org webmaster at zope.org
Mon Dec 15 23:33:15 EST 2003


A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixB.stx#2-117

---------------

    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.



More information about the ZDP mailing list