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

webmaster at zope.org webmaster at zope.org
Tue Nov 4 10:58:17 EST 2003


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

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

    You can also fix the date formatting problems with a little
    Python. Create a script named 'file_date' in your 'FileLib'
    folder::

      ## Script (Python) "file_date"
      ##
      """
      Return modification date as string YYYY/MM/DD
      """
      date=context.bobobase_modification_time()
      return "%s/%s/%s" % (date.year(), date.month(), date.day())

      % Anonymous User - Nov. 4, 2003 10:58 am:
       We are learning about TAL!!!



More information about the ZDP mailing list