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):
adapted.doSomething(name)
Other ideas greatfully received!
cheersm
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com