[ZCM] [ZC] 2264/ 1 Request "Five: browser:view should set __name__"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #2264 Update (Request) "Five: browser:view should set __name__" Status Pending, Zope/bug medium To followup, visit: http://www.zope.org/Collectors/Zope/2264 ============================================================== = Request - Entry #1 by mj on Jan 12, 2007 4:55 am In Zope3, browser:view sets __name__ on the generated class to the name of the view; after all it is a ILocation implementation. The Zope2/Five implementation of the directive omits this. However, Zope2's recordMetaData depends on either __name__ being set, or getPhysicalPath being available, so a plain Products.Five.BrowserView-based view class can never be rendered without it setting __name__ explicitly (or implementing getPhysicalPath). ==============================================================