[Zope3-dev] Re: Idea: Failure to lookup adapters

Chris Withers chris at simplistix.co.uk
Thu Jan 18 03:56:41 EST 2007


Philipp von Weitershausen wrote:
> Code like this won't be run with python -O (which is what you'd 
> obviously use in production).

obviously... not.

How many people actually do this?

>> I wonder whether a different approach could be taken. The APIDOC code 
>> does already a registration analysis. Maybe we can use the 
>> registrations in a away that they simulate the adapter registry. Thus 
>> you could provide APIDOC (via the Web UI or Python) with a component 
>> or instance and it tells you how it tries to look up the adapter. 
>> Clearly that would be much slower, but okay for inspection.
> 
> Sounds good. I like the explainAdapter() suggestion.

Me too...

Chris

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



More information about the Zope3-dev mailing list