Hi,

zope.component.getInterface takes a 'context' as a parameter, which is unused practically or set to None.

def getInterface(context, id):
   iface = queryInterface(id, None)
   if iface is None:
       raise ComponentLookupError(id)
   return iface

is it a relic from an old API? why not simplify it to getInterface(id) ?

regards
/JM

_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to