From 089c47a59e5429e61f16768ab2981641f15dc803 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 22 Mar 2007 11:16:46 +0000 Subject: [PATCH] Remove getIntIndex method, which was an useless hack. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13553 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/CalendarPeriod.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/product/ERP5/Document/CalendarPeriod.py b/product/ERP5/Document/CalendarPeriod.py index 98168a7886..be354e9235 100644 --- a/product/ERP5/Document/CalendarPeriod.py +++ b/product/ERP5/Document/CalendarPeriod.py @@ -198,18 +198,3 @@ class CalendarPeriod(Movement, Periodicity): else: next_start_date += 1 return next_start_date - - security.declareProtected(Permissions.AccessContentsInformation, - 'getIntIndex') - def getIntIndex(self, default=None, *args, **kw): - """ - Return a default value of the int index, based on the ID - """ - # XXX This method may be defined on a higher level document - result = self._baseGetIntIndex(*args, **kw) - if result in [None, '']: - try: - result = int(self.getId()) - except ValueError: - result = default - return result -- 2.30.9