Suppose you have a simple form like:

    <form action="" method="post">
    City: <input name="performers" type="text">
    Radius: <input name="radius:int" type="text">
    <input type="submit" name="submit" value="Search">

and the user submits the form with an invalid input for the radius.
Assuming ZServer was not run with -D, other than the standard boilerplate,
all the user sees is


However, field2int raised ValueError with a string like

    ValueError: An integer was expected in the value 'wer'

Making this available to the user, even in the non-debug case, seems like it
would be useful feedback for the user that could help guide them to their

Skip Montanaro ([EMAIL PROTECTED])

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to