[Checkins] SVN: zope.location/trunk/ * Add ``getParents`` method to the ILocationInfo (it's actually used by zope.traversing, but was not added to the interface).
Christian Theune
ct at gocept.com
Tue Feb 3 01:31:55 EST 2009
On Mon, 2 Feb 2009 05:59:26 -0500 (EST)
Dan Korostelev <nadako at gmail.com> wrote:
> Log message for revision 95958:
> * Add ``getParents`` method to the ILocationInfo (it's actually
> used by zope.traversing, but was not added to the interface).
> * Beautify doctests and add some more doctests to improve coverage.
> * Add coverage-test and coverage-report to the buildout.
> * Make ``getName`` method of ILocationInfo adapter return u'' for
> the root object.
Actually the getName method should be removed. It was there because
zope.traversing did not depend on ILocation before and thus had no
knowledge of __name__. The ILocationInfo (which before was
IPhysicallyLocatable IIRC) says that it works on locations (which
IPhysicallyLocatable did before) so we already have access to __name__.
Interestingly enough the __name__ of the root will be None.
--
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development
More information about the Checkins
mailing list