How to get fields provided by a behavior from an invariant?
Gil Forcada Codinachs <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <CAKSaQ18kp=Z40_HkEOM533PssG-XXA4H0wv=jTgFfid3vLVQ+A@mail.gmail.com> |
Hi plone devs, I'm struggling with a problem that I reported on stackoverflow but was pointed to ask here: http://stackoverflow.com/questions/23021989 The TL;DR; version is: I have a behavior with two fields week and year, on a content type (that has that behavior) I create an invariant because I want those two fields to be mandatory (but only for that specific content type). I thought that an invariant on the content type checking for the values of the week and year field would be the simplest solution but seems that for some reason the invariant is only aware of the values of the interface is defined within. Maybe because the invariant comes from z3c.form and behaviors and so on from dexterity? What solution would you suggest? I need to validate the week and year fields for that specific content type. Cheers, Gil ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Plone-developers mailing list Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-developers