Commit 6389f185 authored by Jérome Perrin's avatar Jérome Perrin

SelectionTool: fix getSelectionDomainDictFor and getSelectionReportDictFor

parent 9ea5cc2c
...@@ -328,7 +328,7 @@ class SelectionTool( BaseTool, SimpleItem ): ...@@ -328,7 +328,7 @@ class SelectionTool( BaseTool, SimpleItem ):
selection = self.getSelectionFor(selection_name, REQUEST=REQUEST) selection = self.getSelectionFor(selection_name, REQUEST=REQUEST)
if selection is not None: if selection is not None:
try: try:
return selection.getDomain().asDomainDict return selection.getDomain().asDomainDict()
except AttributeError: except AttributeError:
return {} return {}
...@@ -340,7 +340,7 @@ class SelectionTool( BaseTool, SimpleItem ): ...@@ -340,7 +340,7 @@ class SelectionTool( BaseTool, SimpleItem ):
selection = self.getSelectionFor(selection_name, REQUEST=REQUEST) selection = self.getSelectionFor(selection_name, REQUEST=REQUEST)
if selection is not None: if selection is not None:
try: try:
return selection.getReport().asDomainDict return selection.getReport().asDomainDict()
except AttributeError: except AttributeError:
return {} return {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment