[Zope-dev] z3c.form: object.createObject should raise TypeError
Hi, the data converter for objects raises a ValueError if it can't find a factory. This is caught by the validation machinery around it and displayed to the user with 'There were errors'. This isn't helpful as the user isn't told whats going on and he won't be able to do anything about it. The code pattern seems that this is only a synthesized version of what exception the component architecture would raise. Thus the error should appear as an application error (visible in the error log) as this situation needs to be dealt with by a programmer. Objections for changing this? Christian -- Christian Theune · c...@gocept.com gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1 Zope and Plone consulting and development signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] z3c.form: object.createObject should raise TypeError
On Wednesday 11 March 2009, Christian Theune wrote: Objections for changing this? No. As long as all the tests pass, everything is game for z3c.form 2.0. :-) Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. Zope Stephan Richter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )