[Zope-Coders] docstring checking and __bobo_traverse__ broken, perhaps

Steve Alexander steve@cat-box.net
Thu, 11 Oct 2001 10:48:32 +0100


Steve Alexander wrote:


> If this is a bug, not a feature, I volunteer to produce the fix. :-)


The fixis, of course, to indent this by four extra spaces:

(ZPublisher/BaseRequest.py, lines 375-387)

   # 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__' % entry_name, None)
   if not doc:
       return response.debugError(
           "The object at %s has an empty or missing " \
           "docstring. Objects must have a docstring to be " \
           "published." % URL
           )

 
-- 
Steve Alexander
Software Engineer
Cat-Box limited