[Zope-Coders] dtml-let broken ?

Andreas Jung Andreas Jung" <andreas@zope.com
Mon, 7 Jan 2002 11:07:52 -0500


urxxx...sure 

*mea culpa* 

Andreas

----- Original Message ----- 
From: "Casey Duncan" <c.duncan@nlada.org>
To: "Andreas Jung" <andreas@zope.com>; <zope-coders@zope.org>
Sent: Monday, January 07, 2002 11:10
Subject: Re: [Zope-Coders] dtml-let broken ?


> On Monday 07 January 2002 11:00 am, Andreas Jung allegedly wrote:
> > <dtml-let xx="01/01/2001">
> >  <dtml-var "ZopeTime(xx)" >
> > </dtml-let
> >
> > returns "1969/12/31 19:00:00 US/Eastern
> >
> > but <dtml-var "ZopeTime('01/01/2001')"> returns the "2001/01/01".
> >
> > Looks there is something broken or am I missing something ?
> >
> > Andreas
> 
> Umm, yeah. Try:
> 
> <dtml-let xx="'01/01/2001'">
>   <dtml-var "ZopeTime(xx)">
> </dtml-let>
> 
> You were missing a crucial set of quotes there. Remember that the double 
> quotes are part of the DTML code not the Python expr. 8^)
> 
> /---------------------------------------------------\
>   Casey Duncan, Sr. Web Developer
>   National Legal Aid and Defender Association
>   c.duncan@nlada.org
> \---------------------------------------------------/
>