On May 18, 2006, at 4:12 PM, <[EMAIL PROTECTED]> wrote:
Hi Gary
[...]
With your change, if the error is (or extends!) Invalid, it
is hardcoded to assume the first argument is a string,
message, or something with a reasonably __str__, translate if
it is a message, and wrap the result with a .
Hi Gary
[...]
> With your change, if the error is (or extends!) Invalid, it
> is hardcoded to assume the first argument is a string,
> message, or something with a reasonably __str__, translate if
> it is a message, and wrap the result with a . I'd much
> prefer it if that code were ripped ou
On May 17, 2006, at 9:27 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
wrote:
From: Gary Poster [mailto:[EMAIL PROTECTED]
On Apr 22, 2006, at 11:31 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
wrote:
The formlib.EditForm dosen't catch all errors form widgets.
...
I solve the problem and added
Hi Gary,
> -Original Message-
> From: Gary Poster [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 17, 2006 7:36 PM
> To: [EMAIL PROTECTED]
> Cc: zope3-dev@zope.org
> Subject: Re: [Zope3-dev] Formlib error handling
>
>
> On Apr 22, 2006, at 11:31 AM,
On Apr 22, 2006, at 11:31 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
wrote:
The formlib.EditForm dosen't catch all errors form widgets.
...
Hey Roger. Your email has been sitting open on my computer for
weeks, reminding me to reply, and I want to get rid of it. :-) Did
you put a col
The formlib.EditForm dosen't catch all errors form widgets.
The following method catches only InputError:
def getWidgetsData(widgets, form_prefix, data):
errors = []
form_prefix += '.'
for input, widget in widgets.__iter_input_and_widget__():
if input and IInputWidget.provide