Pylons error handling

Posted by TJ Huffington on Stack Overflow See other posts from Stack Overflow or by TJ Huffington
Published on 2010-03-27T17:19:30Z Indexed on 2010/03/27 17:23 UTC
Read the original article Hit count: 302

Filed under:
|
|

Hello, I am just getting started with Pylons and am confused as to how to account for exceptions. What is the proper way to error check user input (ensure a correct email address, check that it doesn't yet exist in the database, etc ...)? Should these checks go inside the model classes or somewhere else? Sample code would be great.

© Stack Overflow or respective owner

Related posts about python

Related posts about pylons