zope.i18n.format pytz usage (was Re: [Zope3-dev] XXX Roundup)

Gary Poster gary at zope.com
Fri Dec 16 17:00:20 EST 2005


On Dec 16, 2005, at 4:56 PM, Gary Poster wrote:
...
> I think I can fix it by using the pytz.reference.FixedOffset  
> class.  That's what I'll try to do now.

BTW, let me note that this is still bad.  These things *should not*  
be persisted: they will generate lots and lots of little instances.   
Maybe the code should use a class that refuses to be persisted instead.

Another approach would be to copy over zope.app.datetimeutils into  
zope.i18n: it has already addressed the problem.

Gary


More information about the Zope3-dev mailing list