ZCML allowed_attributes corresponding method in five.grok
Asked Answered
C

1

63

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.

Checkerbloom answered 20/10, 2011 at 10:32 Comment(3)
Moreover, grokcore.traverser depends on grokcore.view > 2 while dexterity's KGS currently pins grokcore.view to 1.3.15.Reptile
Any help about this??Synonymy
I am pretty sure it is not possible as there has not been answers for 3 yearsCheckerbloom
S
5

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

Smollett answered 28/3, 2014 at 12:24 Comment(2)
Haha. I wrote that line myself long time ago. I am not sure how much truth it holds, so I would rather have a direct reference to Grok source code. In any Grok is pretty much dead project by now.Checkerbloom
@MikkoOhtamaa: :D, your line might be true, at least view/w/details/render, as suggested in the docs, doesn't work with Dexterities, which were created TTW (model-driven).Apt

© 2022 - 2024 — McMap. All rights reserved.