Re: [Zope3-Users] Formlib and invariants

2006-07-19 Thread Darryl Cousins
Hi Florian, Yup. Thanks for that, much more elegant and passing in an error string displays nicely with error_views. Cheers, Darryl On Wed, 2006-07-19 at 22:18 +0200, Florian Lindner wrote: > Am Mittwoch, 19. Juli 2006 03:25 schrieb Darryl Cousins: > > Hi All, > > > > I've had a bit of a struggl

Re: [Zope3-Users] Formlib and invariants

2006-07-19 Thread Florian Lindner
Am Mittwoch, 19. Juli 2006 03:25 schrieb Darryl Cousins: > Hi All, > > I've had a bit of a struggle getting formlib error views to play nicely > with invariants. That is the problem I have found to trouble me is in > the zope.formlib.form.FormBase method error_views. > > When I use the schema: > >

[Zope3-Users] Formlib and invariants

2006-07-18 Thread Darryl Cousins
Hi All, I've had a bit of a struggle getting formlib error views to play nicely with invariants. That is the problem I have found to trouble me is in the zope.formlib.form.FormBase method error_views. When I use the schema: class IMemberRegisterForm(IMemberData, IMemberDetails): """Schema fo

Re: [Zope3-Users] Formlib and invariants?

2006-05-04 Thread Bernd Dorn
On 05.05.2006, at 03:15, Gary Poster wrote: On May 4, 2006, at 7:44 AM, Bernd Dorn wrote: On 04.05.2006, at 13:35, Gary Poster wrote: On May 3, 2006, at 11:51 PM, Bernd Dorn wrote: yes, this should really be fixed up in the default implementation of formlib because interface.Invalid

Re: [Zope3-Users] Formlib and invariants?

2006-05-04 Thread Gary Poster
On May 4, 2006, at 7:44 AM, Bernd Dorn wrote: On 04.05.2006, at 13:35, Gary Poster wrote: On May 3, 2006, at 11:51 PM, Bernd Dorn wrote: yes, this should really be fixed up in the default implementation of formlib because interface.Invalid has no registered multiadapter to zope.app.fo

Re: [Zope3-Users] Formlib and invariants?

2006-05-04 Thread mats.nordgren
Bernd, That took care of it. Thanks a million. Mats On Thu, 4 May 2006 05:51:52 +0200, Bernd Dorn wrote > yes, this should really be fixed up in the default implementation of > formlib > > because interface.Invalid has no registered multiadapter to > zope.app.form.browser.interfaces.IWidge

Re: [Zope3-Users] Formlib and invariants?

2006-05-04 Thread Bernd Dorn
On 04.05.2006, at 13:35, Gary Poster wrote: On May 3, 2006, at 11:51 PM, Bernd Dorn wrote: yes, this should really be fixed up in the default implementation of formlib because interface.Invalid has no registered multiadapter to zope.app.form.browser.interfaces.IWidgetInputErrorView you

Re: [Zope3-Users] Formlib and invariants?

2006-05-04 Thread Gary Poster
On May 3, 2006, at 11:51 PM, Bernd Dorn wrote: yes, this should really be fixed up in the default implementation of formlib because interface.Invalid has no registered multiadapter to zope.app.form.browser.interfaces.IWidgetInputErrorView you have to raise a WidgetInputError an example fo

Re: [Zope3-Users] Formlib and invariants?

2006-05-03 Thread Bernd Dorn
yes, this should really be fixed up in the default implementation of formlib because interface.Invalid has no registered multiadapter to zope.app.form.browser.interfaces.IWidgetInputErrorView you have to raise a WidgetInputError an example for such an error: from zope.schema import Datetime

[Zope3-Users] Formlib and invariants?

2006-05-03 Thread mats.nordgren
I'm trying to do a join form with formlib and are getting errors when checking invariants. I have my form interface IJoinForm class IJoinForm(Interface): """a join form""" username = schema.TextLine( title=_('User Name'), required=True) password = schema.Password(