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