Commit e23b7f4c authored by Yoshinori Okuji's avatar Yoshinori Okuji

Stop using types.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28232 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ee355421
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
# #
############################################################################## ##############################################################################
import types
import zope.interface import zope.interface
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
...@@ -402,7 +400,7 @@ class Alarm(XMLObject, PeriodicityMixin): ...@@ -402,7 +400,7 @@ class Alarm(XMLObject, PeriodicityMixin):
""" """
if process is None: if process is None:
process = self.getLastActiveProcess().getRelativeUrl() process = self.getLastActiveProcess().getRelativeUrl()
elif not type(process) in types.StringTypes: elif not isinstance(process, basestring):
process = process.getRelativeUrl() process = process.getRelativeUrl()
list_action = _getViewFor(self, view='report') list_action = _getViewFor(self, view='report')
if getattr(aq_base(list_action), 'isDocTemp', 0): if getattr(aq_base(list_action), 'isDocTemp', 0):
......
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