Paulo Eduardo Neves wrote:
Oops, excuse me for the incomplete message. Here is the correct one:
Hi,
I've just notice that I had a misconception about how Zope handle input data validation. I thought it were possible to handle the errors, but it looks like we are doomed to show to the user the python traceback.
I believe now that the way to go is to forget the :int and :required specifiers in form attributes and directly code the validation code. Am I right?
Sound's like it.
If so, then besides prototyping there's no use to these specifiers.
They are also useful if you don't want to bother writing validation code.
Is there a best way to validate input form data?
What would you like to do if an input is not valid? Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (888) 344-4332 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.