[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Using Zope Page Templates

webmaster@zope.org webmaster@zope.org
Sun, 22 Sep 2002 07:07:58 -0400

A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx#2-66


    This data comes from the 'item' object by calling Zope API methods
    on what we know is a file object.  The methods 'item/getId',
    'item/content_type', 'item/getSize',
    'item/bobobase_modification_time' are all standard API functions
    that are documented in Zope's online help system.

      % Anonymous User - Apr. 27, 2002 9:46 pm:
       the method 'content_type' appears to be misnamed or excluded from the latest version, otherwise example
       works. API reference for 'file' confirms the syntax (though only by inference).

      % Anonymous User - May 16, 2002 11:02 am:
       In current File API it's getContentType

      % Anonymous User - Sep. 22, 2002 7:07 am:
       The methods getId, content_type, ... are in the API for File objects.
       Also, getID is a method, but isnt content_type a property?