[Erp5-report] r13553 - /erp5/trunk/products/ERP5/Document/CalendarPeriod.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 22 12:16:48 CET 2007


Author: romain
Date: Thu Mar 22 12:16:46 2007
New Revision: 13553

URL: http://svn.erp5.org?rev=13553&view=rev
Log:
Remove getIntIndex method, which was an useless hack.

Modified:
    erp5/trunk/products/ERP5/Document/CalendarPeriod.py

Modified: erp5/trunk/products/ERP5/Document/CalendarPeriod.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/CalendarPeriod.py?rev=13553&r1=13552&r2=13553&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/CalendarPeriod.py (original)
+++ erp5/trunk/products/ERP5/Document/CalendarPeriod.py Thu Mar 22 12:16:46 2007
@@ -198,18 +198,3 @@
       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




More information about the Erp5-report mailing list