Re: disabling zope.schema constraint check in edit form
Joshua Immanuel <[email protected]>
| Newsgroups | gmane.comp.web.zope.bluebream,gmane.comp.web.zope.devel |
|---|---|
| Organization | HiPro IT Solutions Private Limited |
| Message-ID | <1313666373.2457.57.camel@jimman> |
Hello Michael, Thanks for the reply. On Thu, 2011-08-18 at 12:46 +0200, Michael Howitz wrote: > > Is there a way to disable the constraint check in the EditForm if > > the 'name' field isn't modified? > > Make sure your catalog search does not return the object you are > currently editing. Yes. But considering the fact that I am doing this check at the interface level. I wonder if that is ever possible, because the constraint method knows just the value of the field. > > What is the preferred way of doing these kind of checks? > > Some time a ago I wrote a blog post about objects with attributes > which are unique in their container [1]. > Besides it is written in German you might get the clue from the code > examples. > > > [1] > http://blog.gocept.com/zope3-objekte-mit-eindeutigen-titeln-innerhalb-eines-ordners I'll check this and get back. Regards Joshua -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAk5M9T8ACgkQWw85XwuSFML0IwCdEK6oT7Z+wntlreHu3zWvVkyN 4w8AoLWJd7Stts4XkD6p3IN63m5fw0Hf =7DdE -----END PGP SIGNATURE-----