[Zope3-Users] Getting the most specific interface
paulalexwilson at gmail.com
Thu Aug 27 08:19:17 EDT 2009
I am wondering what the best way is to get the most specific interface
is from a class.
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
>>> [x.__name__ for x in implementedBy(MyFoo)]
['IMyFoo', 'IBarFoo', ... ]
I want some reliable way of returning 'IMyFoo' but can't seem to find it...
More information about the Zope3-users