有没有办法在grok.CodeView类中标记可遍历的方法,就像使用Zope 3 BrowserView和allowed_attributesZCML配置指令一样?
我找到了文档,grok.traversable()但看起来这样的方法在五个grok包中不存在.
这是不可能的:“render() 方法是 grok.codeView 类中唯一可遍历的”
如:https : //developer.plone.org/templates_css_and_javascripts/javascript.html
| 归档时间: |
|
| 查看次数: |
802 次 |
| 最近记录: |