Re: [Zope] date formatting

2005-08-29 Thread Peter Bengtsson
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  but
> >  doesn't then there's nothing wrong with how
> > you're using the fmt parameter but something is wrong with "foo".
> > Try::
> >
> >  
> 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
> > >   returns error: Error Type: TypeError
> > > Error Value: not all arguments converted during string formatting
> > >
> > > while  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 )


Re: [Zope] date formatting

2005-08-29 Thread garry saddington
On Mon, 2005-08-29 at 14:51 +0100, Peter Bengtsson wrote:
> If  but
>  doesn't then there's nothing wrong with how
> you're using the fmt parameter but something is wrong with "foo".
> Try::
> 
>  
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
> >   returns error: Error Type: TypeError
> > Error Value: not all arguments converted during string formatting
> > 
> > while  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 )
> > 
> 
> 

___
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 )


Re: [Zope] date formatting

2005-08-29 Thread Peter Bengtsson
If  but
 doesn't then there's nothing wrong with how
you're using the fmt parameter but something is wrong with "foo".
Try::

 

On 8/29/05, garry saddington <[EMAIL PROTECTED]> wrote:
> I am trying to format a dtml-var date by using fmt=Day
>   returns error: Error Type: TypeError
> Error Value: not all arguments converted during string formatting
> 
> while  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 )