There is a problem with compound widgets and widget hiding:
1 Create a News Item in workspaces
2 Go to portal_layouts->newsitem_end
3 Add a new html widget with id "subwidget" with some content in "html for view" and "hidden in layout modes" with value "view".
4 Add a new compound widget with id "superwidget" and in
5 Try to show the News Item created in the first step and the error should appear.
Traceback:
File "Python expression "dir.renderEntryDetailed(id)"", line 1, in <expression>
File "/root/instances/zope2.9/innovaDes/Products/CPSDirectory/BaseDirectory.py", line 562, in renderEntryDetailed
layout_mode=layout_mode, **kw)
File "/root/instances/zope2.9/innovaDes/Products/CPSDirectory/BaseDirectory.py", line 932, in _renderLayout
layout.renderLayoutStructure(layout_structure, datastructure, **kw)
File "/root/instances/zope2.9/innovaDes/Products/CPSSchemas/Layout.py", line 391, in renderLayoutStructure
widget_infos=widget_infos, **kw)
File "/root/instances/zope2.9/innovaDes/Products/CPSSchemas/BasicWidgets.py", line 2030, in render
rendered = widget.render(widget_mode, datastructure, **kw)
File "/root/instances/zope2.9/innovaDes/Products/CPSSchemas/BasicWidgets.py", line 2030, in render
rendered = widget.render(widget_mode, datastructure, **kw)
File "/root/instances/zope2.9/innovaDes/Products/CPSSchemas/BasicWidgets.py", line 295, in render
raise RuntimeError('unknown mode %s' % mode)
RuntimeError: unknown mode hidden