l at lrowe.co.uk
Thu Sep 6 17:29:34 EDT 2007
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.
More information about the Zope-Dev