Hi All,

Can a named adapter find out the name it was registered with during the adaptation process?

This is the only way I can think to do it, but results in the thing calling methods on the adapter passing in the name to every method call to get the information across, which seems a bit clunky to me:

for name,adapted in getAdapters((someobj,),ISomething):

Other ideas greatfully received!



Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk

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

Reply via email to