[Zope] python script error: pls help

Gilles Lenfant gilles@pilotsystems.net
Tue, 20 Aug 2002 22:28:40 +0200


Patch in your script below...
It's untested but should work

HTH

--Gilles

----- Original Message -----=20
From: "Sir K" <k_hamzat@yahoo.com>
To: <zope@zope.org>
Sent: Tuesday, August 20, 2002 7:07 PM
Subject: [Zope] python script error: pls help

[SNIP]

>=20
> tday=3DDateTime().toZone('GMT+1').strftime('%d%m%y')
> yday=3D(DateTime()-1).toZone('GMT+1').strftime('%d%m%y')
> for i in context.Zcat_New1_Dtml_doc():
        # Should be correct (untested)
        id =3D i.getObject().getId()
>      if tday=3D=3Did:
>          return tday
>      else:
>          tday=3Dyday
>          return tday