[Erp5-report] r28232 - /erp5/trunk/products/ERP5/Document/Alarm.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jul 31 09:54:10 CEST 2009


Author: yo
Date: Fri Jul 31 09:54:10 2009
New Revision: 28232

URL: http://svn.erp5.org?rev=28232&view=rev
Log:
Stop using types.

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

Modified: erp5/trunk/products/ERP5/Document/Alarm.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Alarm.py?rev=28232&r1=28231&r2=28232&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Alarm.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Alarm.py [utf8] Fri Jul 31 09:54:10 2009
@@ -25,8 +25,6 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 ##############################################################################
-
-import types
 
 import zope.interface
 from AccessControl import ClassSecurityInfo
@@ -402,7 +400,7 @@
     """
     if process is None:
       process = self.getLastActiveProcess().getRelativeUrl()
-    elif not type(process) in types.StringTypes:
+    elif not isinstance(process, basestring):
       process = process.getRelativeUrl()
     list_action = _getViewFor(self, view='report')
     if getattr(aq_base(list_action), 'isDocTemp', 0):




More information about the Erp5-report mailing list