[prev in list] [next in list] [prev in thread] [next in thread]
List: zope-dev
Subject: Re: [Zope-dev] request.locale
From: "Dieter Maurer" <dieter () handshake ! de>
Date: 2007-09-07 18:42:09
Message-ID: 18145.39809.281401.924192 () gargle ! gargle ! HOWL
[Download RAW message or body]
Laurence Rowe wrote at 2007-9-6 22:29 +0100:
>Quite a lot of zope3 code (zc.datetimewidget for instance) expects to be
>able to access request.locale. ZPublisher does not provide this and to
>get around the limitation you must manually set request.locale in your
>view using Products.CMFDefault.formlib.form.getLocale. This seems
>brittle. I think it would be desirable to include such functionality in
>Zope 2. If there is support for this, where should it go?
>ZPublisher.HTTPRequst or somewhere in Five seem like prime candidates.
It has been discussed before:
Adding "locale" to a Zope 2 request may introduce a name conflict --
in those cases where "locale" is used as form variable, as a cookie
or "set" on request.
--
Dieter
_______________________________________________
Zope-Dev maillist - Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic