That means that 'foo' is NOT a DateTime object like ZopeTime is. 

On 8/29/05, garry saddington <[EMAIL PROTECTED]> wrote:
> On Mon, 2005-08-29 at 14:51 +0100, Peter Bengtsson wrote:
> > If <dtml-var ZopeTime fmt="Day"> but
> > <dtml-var foo fmt="Day"> doesn't then there's nothing wrong with how
> > you're using the fmt parameter but something is wrong with "foo".
> > Try::
> >
> >  <dtml-var "foo.strftime('Day')">
> this gives the following error: 'str' object has no attribute strftime
> regards
> garry
> 
> >
> > On 8/29/05, garry saddington <[EMAIL PROTECTED]> wrote:
> > > I am trying to format a dtml-var date by using fmt=Day
> > >  <dtml-var foo fmt="Day"> returns error: Error Type: TypeError
> > > Error Value: not all arguments converted during string formatting
> > >
> > > while <dtml-var ZopeTime fmt="Day"> works fine.
> > >
> > > The date is International format and I have Zope set up to parse
> > > international dates.
> > > Does anyone know where I am going wrong?
> > > regards
> > > garry
> > >
> > > _______________________________________________
> > > Zope maillist  -  Zope@zope.org
> > > http://mail.zope.org/mailman/listinfo/zope
> > > **   No cross posts or HTML encoding!  **
> > > (Related lists -
> > >  http://mail.zope.org/mailman/listinfo/zope-announce
> > >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > >
> >
> >
> 
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to