Re: z3c.form vs. Invalid exceptions

Stephan Richter <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Friday 26 February 2010, Martin Aspeli wrote:
> The z3c.form doctests make it look like raising zope.interface.Invalid() 
> would be an acceptable thing for a validator to do. It also makes it 
> look like the argument passed to the Invalid() constructor is a string 
> that would be displayed as an error message.

After reviewing the code and comments briefly, I think this is a bug. I am 
amazed that it has not surfaced before. I guess Invalid from zope.interface is 
simply not raised that often.

Feel free to fix the bug with a test. You can also release a new z3c.form 
version if you like. I can give you access

Regards,
Stephan
-- 
Entrepreneur and Software Geek
Google me. "Zope Stephan Richter"
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.