Question

Is there a way to mark methods traversable in grok.CodeView classes, like you can do with Zope 3 BrowserView and allowed_attributes ZCML configuration directive?

I found docs about grok.traversable() but it looks like such method does not exist in five grok package.

Was it helpful?

Solution

It is not possible: "the render() method is the only traversable in grok.codeView classes"

as stated in: https://developer.plone.org/templates_css_and_javascripts/javascript.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top