Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ZCML allowed_attributes corresponding method in five.grok

Tags:

zope

plone

grok

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.

like image 415
Mikko Ohtamaa Avatar asked Oct 20 '11 10:10

Mikko Ohtamaa


1 Answers

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

like image 182
Max Langerak Avatar answered Oct 23 '22 08:10

Max Langerak