Re: [Zope-dev] disabling zope.schema constraint check in edit form

2011-08-18 Thread Joshua Immanuel
Hello Leonardo, On Thu, 2011-08-18 at 19:10 +0200, Leonardo Rochael Almeida wrote: > For the 'cancel button' case, you need to have a form action with a > validator that always validates, no matter what. You can find an > example of one such null_validator here: > > https://svn.plone.org/svn/plon

Re: [Zope-dev] disabling zope.schema constraint check in edit form

2011-08-18 Thread Leonardo Rochael Almeida
Hi Joshua, On Thu, Aug 18, 2011 at 09:59, Joshua Immanuel wrote: > [...] Worse case scenario is where I have a cancel > action button which just redirects to another page, that too screams for > the NameAlreadyExists error. For the 'cancel button' case, you need to have a form action with a vali

[Zope-dev] disabling zope.schema constraint check in edit form

2011-08-18 Thread Joshua Immanuel
Hello all, I use the zope.schema field's constraint parameter to check for the uniqueness of a particular field like this class IMyObject(Interface): def check_for_uniqueness(value): cat = getUtility(ICatalog) result