[Zope-dev] Re: SVN:
Zope/branches/easter-sprint_traversal-refactor/lib/python/ZPublisher/BaseRequest.py
Now using an adapter. Two tests fail in Five, and I don't know why.
Florent Guillaume
fg at nuxeo.com
Sat Apr 29 11:24:17 EDT 2006
I know this code was just refactored and exists in stock Zope 2, but it
made me see this:
Lennart Regebro wrote:
> +class DefaultPublishTraverse(object):
[...]
> + # Ensure that the object has a docstring, or that the parent
> + # object has a pseudo-docstring for the object. Objects that
> + # have an empty or missing docstring are not published.
> + doc = getattr(subobject, '__doc__', None)
> + if doc is None:
> + doc = getattr(object, '%s__doc__' % name, None)
This should avoid acquisition and be performed on aq_base(object) I believe.
Florent
--
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the Zope-Dev
mailing list