[Zope] DateTime inside an in loop
Garry Steedman
gs@styrax.com
Sat, 23 Jun 2001 18:26:13 +0000
Neil,
what's the traceback?
cheers,
Garry
On 23 Jun 2001, at 17:51, Neil Burnett wrote:
From: "Neil Burnett" <neil@efc.be>
To: <zope@zope.org>
Subject: [Zope] DateTime inside an in loop
Date sent: Sat, 23 Jun 2001 17:51:13 +0200
> I want to use DateTime on a date value returned in a ZSQLMethod.
>
> E.g. Say the SQL for get_records() ZSQLMethod is
>
> SELECT ID, adate FROM DateValues
>
> I want to do something like this:
>
> <dtml-in expr="get_records()">
> <dtml-var ID>
> <dtml-var expr="_.DateTime(adate).strftime('%d-%b')">
> </dtml-in>
>
> I have tried all sorts of syntax to get a result, with no result.
>
> Question 1: Can someone tell me the correct syntax please?
>
> Question 2: Can someone 'teach me to fish' by showing me the path to
> some documentation on namespaces? I have searched and read a fair
> amount today without actually getting enlightenment:-(
>
> Thanks a lot
>
> Neil
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
+-------------------------------------------+
Garry Steedman mailto:gs@styrax.com
Styrax Associates http://www.styrax.com/
"The Good Man has no shape."
+-------------------------------------------+