From 0ce49b913590a8c143224b6570e0e83b2fee92f0 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Thu, 26 Jun 2008 12:20:58 +0000
Subject: [PATCH] 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
---
 product/ERP5Form/SelectionTool.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py
index 793722b4e0..29f26dab73 100644
--- a/product/ERP5Form/SelectionTool.py
+++ b/product/ERP5Form/SelectionTool.py
@@ -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)
-- 
2.30.9