Am 22.04.2009 um 14:48 schrieb Jacob Holm:
> Michael Howitz wrote:
>>> Anyone having an idea for a possibly working solution?
>> As I got no responsed, I'd like to put this issue into z3c.form's
>> bugtracker. But which is the correct one?
>> https://bugs.launchpad.net/zope3/ ?
> I don't know about the right tracker for this, but I think the right
> solution is 2) except that when widget.ignoreContext is True the
> default value should be looked up and validated instead. In other
> words, change z3c.form.validator.SimpleFieldValidator.validate to
> something like this (untested):
[snipped really good suggestion]
> Unless I am missing something, the above code should compute the
> same value as z3c.form.widget.Widget.update would when ignoreRequest
> is True. Thus effectively converting NOT_CHANGED into the
> "existing" value before validating,
Many thanks, Jacob. Your suggestion works very well. I implemented it
on my branch and merged it to the trunk.
Michael Howitz · m...@gocept.com · software developer
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1
Zope and Plone consulting and development
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -