[Zope-dev] ZPublisher: using zope.formlib and z3c.form in Zope 2

yuppie y.2011 at wcm-solutions.de
Wed Mar 2 05:00:03 EST 2011


Hi Martin!


Martin Aspeli wrote:
>> - After traversal and before calling the object
>> ZPublisher.Publish.publish should figure out if the object expects
>> zope.publisher behavior. Either we use a new interface for this or we
>> use zope.publisher.interfaces.browser.IBrowserPage: AFAICS in Zope 2
>> land only zope.formlib and z3c.form based views implement IBrowserPage.
>
> Isn't this in zope.browserpage now?

No.

>> - plone.z3cform uses a modified version of processInputs and doesn't use
>> setPageEncoding. Can anybody explain why? I guess that are no z3c.form
>> specific reasons. Maybe the changes can be merged back to Zope?
>
> processInputs() in Five was very buggy. I thought I'd merged those
> changes into Zope 2?

Well. You were the last person who touched both. But the changes are 
quit different:

http://svn.zope.org/Zope/trunk/src/Products/Five/browser/decode.py?rev=115280&view=log
http://svn.zope.org/plone.z3cform/trunk/plone/z3cform/z2.py?rev=109071&view=log

Is there still anything in plone.z3cform that should be merged into Zope 2?

> I don't know what setPageEncoding() does, though.

It sets a response Content-Type header with the first charset 
processInputs tries for decoding.


Cheers,

	Yuppie


More information about the Zope-Dev mailing list