Re: Suggestion: generate_random method of validators for fuzz testing
Jorge Godoy <[email protected]>
| Newsgroups | gmane.comp.python.formencode |
|---|---|
| Organization | G2C Tech Consultoria Ltda. |
| Message-ID | <[email protected]> |
Peter S Russell <[email protected]> writes: > + I have a TurboGears controller method that takes input from a form. > This method should always return an HTML page regardless of the input, > The HTML page should either be a response or an error message, but not a > 500 error (as a result of an unhandled exception). It is impossible to Not just on formencode side, but TurboGears has a decorator named "exception_handler" that pairs with "error_handler" on doing that. "error_handler" is activated with bad input, "exception_handler" with exceptions from your code. -- Jorge Godoy <[email protected]> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV