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.

Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-users mailing list

Reply via email to