Invariant between behaviors? (DX/z3cform)

"Jens W. Klein" <jens-/[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Organization Klein & Partner KG
Message-ID <[email protected]>
z3cform/ dexterity question:

I have a custom behavior "A" with a field "myfield".

Now I want an invariant validation to have this field required only if 
'otherfield' on an other behaviour "B" was set.

In my invariants 'data' on A does not contain 'otherfield' (only myfield).

How can i access the values from B in my invariant on A?

regards Jens
-- 
Klein & Partner KG, member of BlueDynamics Alliance


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.