Re: [Zope] DTML-In with date/time filter

2006-05-04 Thread Chris Withers
Dieter Maurer wrote: Martin Koekenberg wrote at 2006-5-3 14:47 +0200: I use this code in a Python script and call this script within a DTML-IN statement. What I need is a script to get only items with a date in the future, today or in the past. The objects are DTML Documents with a date

[Zope] DTML-In with date/time filter

2006-05-03 Thread Martin Koekenberg
Hallo, I can create a dtml-in filte with the following code: return [doc for doc in context.objectValues('DTML Document') if doc.getProperty('a')!='de'] How can I do the same with a date or time ? Regards, Martin Koekenberg -Original Message-From: Tino Wildenhain

Re: [Zope] DTML-In with date/time filter

2006-05-03 Thread Andreas Jung
--On 3. Mai 2006 12:17:36 +0200 Martin Koekenberg [EMAIL PROTECTED] wrote: Hallo, I can create a dtml-in filte with the following code: return [doc for doc in context.objectValues('DTML Document') if doc.getProperty('a')!='de'] Using return in DTML does not make sense. Writing such

Re: [Zope] DTML-In with date/time filter

2006-05-03 Thread Martin Koekenberg
-Original Message-From: Andreas Jung [EMAIL PROTECTED]To: Martin Koekenberg [EMAIL PROTECTED], zope@zope.orgDate: Wed, 03 May 2006 12:20:33 +0200Subject: Re: [Zope] DTML-In with date/time filter --On 3. Mai 2006 12:17:36 +0200 Martin Koekenberg [EMAIL PROTECTED] wrote: Hallo, I can create

Re: [Zope] DTML-In with date/time filter

2006-05-03 Thread Jonathan
Koekenberg To: zope@zope.org Sent: Wednesday, May 03, 2006 8:47 AM Subject: Re: [Zope] DTML-In with date/time filter Hello Andreas, I use this code in a Python script and call this script within a DTML-IN statement. What I need is a script to get only items with a date in the future, today

Re: [Zope] DTML-In with date/time filter

2006-05-03 Thread Dieter Maurer
Martin Koekenberg wrote at 2006-5-3 14:47 +0200: I use this code in a Python script and call this script within a DTML-IN statement. What I need is a script to get only items with a date in the future, today or in the past. The objects are DTML Documents with a date property field. Assuming,