[Zope3-Users] Multi-directional adapters.
srichter at cosmos.phy.tufts.edu
Mon Aug 1 11:23:40 EDT 2005
On Wednesday 27 July 2005 10:04, Alec Munro wrote:
> I'm sure I'm using the wrong terminology, so here's what I'm trying to do.
> I have a generic container type (someContainer), and a specific object
> type (objA). objA can only be contained within AContainer (or
> containers that implement IAContainer), so in order to add objA to
> someContainer, we would need an adapter between IAContainer and
> IsomeContainer. To complicate the mix, there is no such adapter
> (because I don't want objA stored in someContainer). However, there is
> an adapter between IBContainer, and IsomeContainer. There is also an
> adapter between IobjA and IobjB.
This use case has been solved for a long time using the API of
zope.app.containers.constraints and is documented in several places.
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users