[ZCM] [ZC] 2267/ 2 Comment "recordMetaData and Five integration might cause obscure error"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #2267 Update (Comment) "recordMetaData and Five integration might cause obscure error" Status Pending, Zope/bug medium To followup, visit: http://www.zope.org/Collectors/Zope/2267 ============================================================== = 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. ==============================================================