Re: [Zope3-Users] z3c.form: LookupErrors

2009-04-08 Thread Martin Aspeli
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

[Zope3-Users] z3c.form: LookupErrors

2009-04-07 Thread Martin Aspeli
Hi, In z3c.form (at least with 1.9.0), if you have a Choice field and the vocabulary changes so that an existing value (or the default value on an add form) is no longer valid, you get a LookupError: Module z3c.form.form, line 126, in updateWidgets Module z3c.form.field, line 259, in

Re: [Zope3-Users] z3c.form: LookupErrors

2009-04-07 Thread Roger Ineichen
Hi Martin -Ursprüngliche Nachricht- Von: zope3-users-boun...@zope.org [mailto:zope3-users-boun...@zope.org] Im Auftrag von Martin Aspeli Gesendet: Dienstag, 7. April 2009 16:17 An: zope3-users@zope.org Betreff: [Zope3-Users] z3c.form: LookupErrors Hi, In z3c.form (at least

Re: [Zope3-Users] z3c.form: LookupErrors

2009-04-07 Thread Stephan Richter
On Tuesday 07 April 2009, Roger Ineichen wrote: It'd be nicer if z3c.form would catch the error and return field.missing_value or something like that. As it stands, if this happens with a content object, it's impossible to reach the edit form and fix the value! This is a legacy data

Re: [Zope3-Users] z3c.form: LookupErrors

2009-04-07 Thread Roger Ineichen
Hi Stephan -Ursprüngliche Nachricht- Von: Stephan Richter [mailto:srich...@cosmos.phy.tufts.edu] Gesendet: Dienstag, 7. April 2009 19:30 An: zope3-users@zope.org; d...@projekt01.ch Cc: 'Martin Aspeli' Betreff: Re: [Zope3-Users] z3c.form: LookupErrors On Tuesday 07 April 2009