JW, That is in SVN now - if your method has a "has_errors" var it will get called instead of validate_error.
Sean Cazzell On Thu, 2005-11-17 at 17:02 +0000, [EMAIL PROTECTED] wrote: > I read in a post that validation_error was going away. > > Kevin said, """That's a good point. If we deprecate validation_error, > then the method > can just be called directly and you can check form_errors to see if > there's a problem. I think this also means that an invalid exception > would never be raised. > > It simplifies the code, but it does also eliminate a visual reminder > to check for errors. Maybe that's not so bad, though. """ > > The idea being that the method being called would receive a has_errors > argument. The example Kevin gave is below: > > @turbogears.expose(input_form=myform) > def save(self, name, address, age, has_errors): > if has_errors: > return self.index() > > Did this change ever make it into turbo-gears? I've been playing with > validators and have really grown to not like the validation_error > method of dealing with problems :). > > I'd really like to know what the new-method will be, if there is going > to be one. > > Thanks, > jw >