[z3-five] Re: Traversal issue [was: 0.2 release]

Tres Seaver tseaver at zope.com
Sun Oct 3 20:20:12 MEST 2004


Philipp von Weitershausen wrote:

> This way Traversable.__fallback_traverse__ is a regular function object 
> (the 'func' function from inside ZPublisherCompatibleTraverser). Since 
> it doesn't matter whether you have an UnboundMethodType or a 
> FunctionType on a class and ExtensionClasses allow us to monkey with 
> them anyway, it should work :)

Borrowing unbound methods from another class does *not* work well in 
Zope 2.8, because ExtensionClass is now a simple new-style class.  We 
need either to strip off the UnboundMethod wrapper or else fabricate 
some other kind of currying if we want it to be portable.

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



More information about the z3-five mailing list