[ZCM] [ZC] 2267/ 3 Reject "recordMetaData and Five integration might cause obscure error"

"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Fri, 23 Mar 2007 09:07:16 -0400
Newsgroups gmane.comp.web.zope.devel.collector-monitor
Message-ID <[email protected]>
Issue #2267 Update (Reject) "recordMetaData and Five integration might cause obscure error"
 Status Rejected, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/2267

==============================================================
= Reject - Entry #3 by mj on Mar 23, 2007 9:07 am

 Status: Pending => Rejected

Dupe of 2264 (which I filed, then forgot about..)
________________________________________
= Comment - Entry #2 by dreamcatcher on Jan 15, 2007 5:54 pm

It just occurred me that maybe what's missing is a to locate the view after traversal (ie: a call to zope.app.container.contained, to set __parent__ and __name__).
________________________________________
= Request - Entry #1 by dreamcatcher on Jan 15, 2007 3:04 pm

In Zope2/app/startup.py, the recordMetaData method looks at object.__name__ and appends that to the 'to_append' tuple.

If the published object is a Five view, __name__ might be None, which will cause a "TypeError: sequence item 4: expected string, NoneType"

I believe that if __name__ is None it should skip that object and pass keep following the aq_chain.
==============================================================