[Zope3-Users] z3c.form: LookupErrors

Martin Aspeli optilude+lists at gmail.com
Wed Apr 8 08:12:31 EDT 2009


Stephan Richter wrote:
> On Wednesday 08 April 2009, Martin Aspeli wrote:
>> What I'd like to see:
>>
>>   1) z3c.form catches the LookupError and treats it as a valdiation
>> error (even on first render of the form), not a fatal error
>>
>>   2) z3c.form defaults to missing_value if there is a LookupError
>> against what the data manager returns. The value is indeed "missing in
>> action"
>>
>>   3) If possible, we output the offending value in the error message
>>
>>   4) In use cases where it makes sense, people can use a field property
>> implementation that checks the source and returns the default (or
>> something else) if the value can't be found. That's not for z3c.form
>> to decide or depend on though.
> 
> Sounds good.

Would you mind making a 1.9 maintenance branch and, if we fix a few 
bugs, could you release 1.9.1 soonishly.

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book



More information about the Zope3-users mailing list