Ticket #1627 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

compound widget and hidden

Reported by: fguillaume Assigned to: fguillaume
Priority: P2 Milestone: CPS 3.4.1
Component: CPSSchemas Version: 3.4.0
Severity: normal Keywords:
Cc:

Description

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

Change History

04/27/06 14:38:11 changed by fguillaume

Fixed in [45036].

04/27/06 14:38:17 changed by fguillaume

  • status changed from new to closed.
  • resolution set to fixed.