[Zope3-Users] Getting the most specific interface
paulalexwilson at gmail.com
Fri Aug 28 06:06:40 EDT 2009
2009/8/27 Stephan Richter <srichter at cosmos.phy.tufts.edu>
> On Thursday 27 August 2009, Paul Wilson wrote:
> > Relying on the first interface returned from 'implementedBy()' doesn't
> > feel right. I've found another post asking roughly this question that
> > uses 'queryType' , however that doesn't seem to be available these
> > days.
> No, it is right, since these methods always must honor the order. The same is
> true for `providedBy` of instances.
> providedBy(myfoo).flattened() is the right resolution order.
Brilliant - works like a treat.
More information about the Zope3-users