[Zope-dev] Grok cave sprint summary, and future todos

Dan Korostelev nadako at gmail.com
Sat Jan 31 20:22:50 EST 2009


2009/1/31 Martijn Faassen <faassen at startifact.com>:
> Dan Korostelev wrote:
>> Also, there's a bug in zope.traversing:
>>
>> The getParents function of zope.traversing.api uses the "getParents"
>> method of IPhysicallyLocatable, which really is new ILocationInfo, but
>> this interface doesn't even declare getParents method and the
>> RootPhysicallyLocatable adapter in zope.traversing doesn't implement
>> it as well so I got errors. :-/
>
> Oops, none of the tests caught that somehow, where'd you get the errors?
>
> Anyway, Christian Theune should be back online soon to help resolve this
> one.

I checked out the adapters myself and it looks like the
RootPhysicallyLocatable works exactly like the default
LocationPhysicallyLocatable would work for the IRoot object. So I
propose to remove the RootPhysicallyLocatable implementation from
zope.traversing.adapters and import LocationPhyscallyLocatable as
RootPhysicallyLocatable there and remove its registration from
zope.traversing's configure.zcml.

And, of course, the getParents method should be added to the
ILocationInfo interface and that should be stated in changelog
somehow, because that's an extension to API requirements, so
third-party components will need to implement that method in their
custom implementations, if there are any.

-- 
WBR, Dan Korostelev


More information about the Zope-Dev mailing list