[Zope-CMF] Re: [dev] name lookup in skin: some questions

Tres Seaver tseaver at zope.com
Wed Jun 2 11:57:59 EDT 2004


Casey Duncan wrote:
> On Wed, 02 Jun 2004 14:53:24 +0200
> yuppie <y.2004_ at wcm-solutions.de> wrote:

>>2.) I didn't debug this. Does anybody know why skin methods are always
>>
>>looked up twice? Would it make sense to cache all lookups within a 
>>request, not just those that failed?
> 
> 
> This is probably caused in the traversal code. There is at least one
> hasattr/getattr pair in there and calls out the the security machinery
> may do lookups to. To my eye it looks like there are optimizations to be
> had in there.

hasattr delenda est!

Tres.
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com




More information about the Zope-CMF mailing list