Commit 0ce49b91 authored by Vincent Pelletier's avatar Vincent Pelletier

Add deprecation comments on a broken method and its (working but most likely unused) counterpart.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21964 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 657bb4a6
......@@ -629,6 +629,9 @@ class SelectionTool( BaseTool, UniqueObject, SimpleItem ):
def firstPage(self, list_selection_name, listbox_uid, uids=None, REQUEST=None):
"""
Access the first page of a list
XXX: As its complementary (lastPage) is broken, this method is
probably not used either. If so, it should be removed along with
lastPage.
"""
if uids is None: uids = []
selection = self.getSelectionFor(list_selection_name, REQUEST)
......@@ -640,6 +643,9 @@ class SelectionTool( BaseTool, UniqueObject, SimpleItem ):
def lastPage(self, list_selection_name, listbox_uid, uids=None, REQUEST=None):
"""
Access the last page of a list
XXX: This method is broken, since "total_size" field is not
present in the listbox rendering any longer. It should be
removed.
"""
if uids is None: uids = []
selection = self.getSelectionFor(list_selection_name, REQUEST)
......
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