有一个grok.traversable()指令:
http://grok.zope.org/doc/current/reference/directives.html#grok-traversable
我想像这样使用它:
class MultiLinguageContentListingHelper(grok.CodeView):
"""
Builds JSON multilingual content out of Plone.
"""
grok.baseclass()
grok.traversable("getLanguages")
def getLanguages(self):但是,在five.grok中似乎没有这样的情况:
AttributeError: 'module' object has no attribute 'traversable'我错过了一些线来连接这里的点
是个问题吗
在后一种情况下,在哪里戳five.grok使支持发生?
发布于 2012-05-20 20:18:42
基于该错误消息,它不受支持。你需要联系这个邮件列表(或者通过它,西尔万·维奥伦)来找出该做些什么来获得这种支持。
您可以尝试直接使用它,无论它是在哪个grokcore.*包中定义的,例如grokcore.view (您需要检查)。
https://stackoverflow.com/questions/10673109
复制相似问题