[Zope-CMF] Re: getUtility(ISiteRoot) bug?

yuppie y.2007- at wcm-solutions.de
Thu Mar 8 13:41:14 EST 2007


Hi Ross!


Ross Patterson wrote:
>> The lookup is in C code, I don't know C and how to debug that. No idea
>> what's going wrong here.
>>
>> Any pointers?
> 
> I often rename zope/interface/_zope_interface_coptimizations.so to
> zope/interface/_zope_interface_coptimizations.so.bak so that the
> Python implementation is used and I can step into it in PDB. 

Thanks! Good idea.

(Pdb) self._uncached_lookup(required, provided, name)
<CMFSite at mySite>

(Pdb) self._cache
{..., <InterfaceClass Products.CMFCore.interfaces._content.ISiteRoot>: 
{(): None}}

No time at the moment to dig deeper, but for some reason there are 
invalid entries in the cache.


Cheers,

	Yuppie




More information about the Zope-CMF mailing list