[Zope3-Users] Invariants and forms

2007-08-13 Thread NYLAN
Hello, I'm using an invariant to check if given passwords are equal. I've found two different examples(see below), but both don't display my given exception message. The only thing i get is the standard error message. Since this is my first experience with zope, could someone explain to me the

Re: [Zope3-Users] Invariants and forms

2007-08-13 Thread Hermann Himmelbauer
Am Montag, 13. August 2007 12:01 schrieb Darryl Cousins: Hi, This was answered recently me thinks. http://mail.zope.org/pipermail/zope3-users/2007-August/006648.html I think this covers a z3c.form-related issue, but not formlib... Best Regards, Hermann -- [EMAIL PROTECTED] GPG key ID:

Re: [Zope3-Users] Invariants and forms

2007-08-13 Thread Darryl Cousins
Hi, This was answered recently me thinks. http://mail.zope.org/pipermail/zope3-users/2007-August/006648.html Regards, Darryl On Mon, 2007-08-13 at 11:37 +0200, [EMAIL PROTECTED] wrote: Hello, I'm using an invariant to check if given passwords are equal. I've found two different

Re: [Zope3-Users] Invariants and forms

2007-08-13 Thread Stephan Richter
On Monday 13 August 2007 05:37, [EMAIL PROTECTED] wrote: Since this is my first experience with zope, could someone explain to me the correct way to get a custom error message with invariants? I am not sure how or whether formlib does it these days, but raising Invalid('string') should work.

Re: [Zope3-Users] Invariants and forms

2007-08-13 Thread Maciej Wisniowski
I've found two different examples(see below), but both don't display my given exception message. The only thing i get is the standard error message. What do you mean by standard error message? Second example (taken from: