[Zope-dev] Interface.__identifier__

Martijn Pieters mj at zopatista.com
Thu Nov 1 16:14:55 EDT 2007


zope.inferface.interface.InterfaceClass.__init__ defines a nice
attribute self.__identifier__ that stores self.__module__ + '.' +
self.__name__, which is very handy when indexing and searching
interfaces in Plone.

However, unlike __module__, __identifier__ is not part of the
IInterface declaration. Should it be added there to lift this
attribute above implementation detail status?

It can then also be used in zope.component.interface where it could
replace the various usages of __module__ + '.' + __name__.

-- 
Martijn Pieters


More information about the Zope-Dev mailing list