[Zope3-dev] Idea: Failure to lookup adapters

Dieter Maurer dieter at handshake.de
Tue Jan 16 14:28:46 EST 2007


Sidnei da Silva wrote at 2007-1-15 17:25 -0200:
> ...
>The kind of info I'm looking for is something along the lines:
>
>  'We've tried to look up an adapter for (ISomething, ITheOther) but
>none was found'
>  'Found an adapter for IFoo, which is a base class for the IBar
>interface requested. No adapter has been found for the most-specific
>interface IBar'
>
>Comments?

In Zope 2, I would use "__traceback_info__" or (more likely)
"__traceback_supplement__" and the traceback formatting
facilities in "zExceptions.ExceptionFormatter".
This is a very efficient way to analyse all problems that
result in an exception -- far better than log entries.



-- 
Dieter


More information about the Zope3-dev mailing list