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.
29 Apr
2006
29 Apr
'06
3:24 p.m.
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@nuxeo.com
7305
Age (days ago)
7305
Last active (days ago)
0 comments
1 participants
participants (1)
-
Florent Guillaume