Commit 3c695045 authored by Vincent Pelletier's avatar Vincent Pelletier

Add a warning about selection parameter deprecation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26553 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c51c56a1
...@@ -205,6 +205,8 @@ class Selection(Acquisition.Implicit, Traversable, Persistent): ...@@ -205,6 +205,8 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
del kw['sort_on'] # We should not sort if no sort was defined del kw['sort_on'] # We should not sort if no sort was defined
# We should always set selection_name with self.name # We should always set selection_name with self.name
kw['selection_name'] = self.name kw['selection_name'] = self.name
# XXX: Use of selection parameter is deprecated. Use selection_name
# instead, and access the selection via selection_tool.
kw['selection'] = self kw['selection'] = self
if self.domain is not None: if self.domain is not None:
kw['selection_domain'] = self.domain kw['selection_domain'] = self.domain
......
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