[Zope3-Users] Why all of the names of the interfaces in the zope3 are the same 'InterfaceClass'?

曹星明 simeon.chaos at gmail.com
Wed Dec 12 01:06:08 EST 2007


I'm a newbie to the zope 3. Today I was at a loss because I found all of the
names of the interfaces are the same 'InterfaceClass'.
>>>  from zope.interface.interface import InterfaceClass
>>>  from zope.component import interfaces
>>>  for x in dir(interfaces):
>>>  obj = getattr(m,x)
>>>  if isinstance(obj, InterfaceClass):
>>>      obj.__class__.__name__

InterfaceClass
InterfaceClass
......
......
InterfaceClass
InterfaceClass

who can tell me why? How can I get the real name of the interface?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20071212/27531610/attachment.htm


More information about the Zope3-users mailing list