Commit 089c47a5 authored by Romain Courteaud's avatar Romain Courteaud

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
parent ea161e49
...@@ -198,18 +198,3 @@ class CalendarPeriod(Movement, Periodicity): ...@@ -198,18 +198,3 @@ class CalendarPeriod(Movement, Periodicity):
else: else:
next_start_date += 1 next_start_date += 1
return next_start_date 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
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