[Zope-dev] Move implementation of getParent to zope.location?

Thomas Lotze thomas at thomas-lotze.de
Tue Aug 4 02:49:10 EDT 2009


There are two functions in zope.traversing.api, getParent and getParents,
that are rather closely related. The former is implemented right in that
module while the latter adapts its argument to
zope.location.interfaces.ILocationInfo and calls getParents() on that.

Why is getParent not a part of ILocationInfo? If there's no good reason,
I'd propose adding getParent() to the interface and changing the getParent
function in zope.traversing to work similarly to getParents, i.e. call a
method on an ILocationInfo adapter.

-- 
Thomas





More information about the Zope-Dev mailing list