On Sunday 05 August 2007 16:51, Peter Piehler wrote:
> recently I started working with Zope3 and z3c.form.
> The figures in the form should be checked, for instance that the first name
> and the surname are not identical. Therefore I write an invariant-check:
> class IAddress(zope.interface.Interface):
>     """Address Interface"""
>     ...
>     @zope.interface.invariant
>     def areEqual( address ):
>         if address.firstname == address.surname:
>             raise zope.interface.Invalid(u"first name and surname are
> same")
> I was expecting that the error would be shown in the form.
> Unfortunately, zope canceled the  action:

Hi Peter,

just a quick note to tell you that I am not ignoring you. I have just 
reproduced the problem in a doctest and I am fixing it now. I'll send another 
mail, once I checked in a fix.

Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-users mailing list

Reply via email to