[Zope3-dev] Re: [Zope3-checkins] CVS: Zope3/src/zope/publisher- browser.py:1.7
Florent Guillaume
fg@nuxeo.com
Fri, 21 Feb 2003 18:12:12 +0000 (UTC)
Shane Hathaway <shane@zope.com> wrote:
> Jim Fulton wrote:
> > Marius Gedminas wrote:
> >> I think zope.app.datetimeutils should be moved to zope.datetimeutils.
> >
> >
> > I think that's reasonable. Another option would be to make the publisher
> > marshaling facility pluggable, so that zope.app could plug in a specialized
> > date-time parser.
>
> We'll need pluggable date time parsing anyway for I18N. In Brazil, for
> example, "13.02.03" and "13 Fevereiro 2003" are valid dates.
>
> Just to make it more complicated, :-) the choice of date time parsing
> routines probably ought not to be global, and should instead be
> request-specific. Some (many?) sites are multilingual.
Datetime parsing should not even be request specific but completely
application driven. I may want to display or edit side by side two
versions of the same document in different languages, in their native
language and formatting, which requires "manual" parsing.
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com