> Why don't you just name both adapters "shape-adapter"?  Then the adapter
> lookup will only find the "shape-adapter" registered for the most specific
> interface that your content type implements.  (I'm not sure whether or not
> this will work when registering the adapters for classes, but it will
> certainly work if you register them for an IShape interface and an ITriangle
> interface, which are implemented by the Shape and Triangle classes
> respectively, and where ITriangle extends IShape.)
>
> David Glick

Thanks David. The adapter lookup works the same when registering the
adapters for classes.

Hedley

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to