有没有一种方法可以像Zope3 BrowserView和allowed_attributes
ZCML配置指令那样在Zope3类中标记可遍历的方法?
我找到了关于grok.traversable()
的文档,但看起来在five grok包中并不存在这样的方法。
发布于 2014-03-28 20:24:52
不可能:“render()方法是grok.codeView类中唯一可遍历的”
如下所述:https://developer.plone.org/templates_css_and_javascripts/javascript.html
https://stackoverflow.com/questions/7834640
复制相似问题