I though there should be only a prompt to user to try again, just a message. It should not raise exception I think, just retry the operation.
Well, anyway, here is an simplest implementation: http://trac.edgewall.org/ticket/4034. Pls have a look and tell me what's wrong with it. Or what's not :) Can't say CS has overly intuitive interface ;) > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Alec Thomas > Sent: Saturday, October 28, 2006 5:34 AM > To: [email protected] > Subject: [Trac-dev] Re: Errors reporting style > > > On Sat, Oct 28, 2006 at 01:00:45AM +0400, Sergey Chernov (m) wrote: > > > > How should I report captcha's bad input? Didn't get proper style yet. Is > there any sample of user errors reporting? > > Check out how the SpamFilter plugin does it, but basically just throw a > TracError: > > raise TracError('Captcha validation failed') > > Or better yet, subclass TracError and throw the subclass. > > -- > Evolution: Taking care of those too stupid to take care of themselves. > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups > "Trac Development" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to trac-dev- > [EMAIL PROTECTED] > For more options, visit this group at http://groups.google.com/group/trac- > dev > -~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature
