[Erp5-report] r36782 kazuhiko - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 1 15:26:55 CEST 2010
Author: kazuhiko
Date: Thu Jul 1 15:26:53 2010
New Revision: 36782
URL: http://svn.erp5.org?rev=36782&view=rev
Log:
use providedBy() instead of isImplementedBy() for zope-2.12 compatibility.
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=36782&r1=36781&r2=36782&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Thu Jul 1 15:26:53 2010
@@ -1351,7 +1351,7 @@ class ToolTemplateItem(PathTemplateItem)
portal = context.getPortalObject()
types_tool = portal.portal_types
for type_container_id, obj in self._objects.iteritems():
- if interfaces.ITypeProvider.isImplementedBy(obj) and \
+ if interfaces.ITypeProvider.providedBy(obj) and \
type_container_id not in types_tool.type_provider_list:
types_tool.type_provider_list = tuple(types_tool.type_provider_list) + \
(type_container_id,)
More information about the Erp5-report
mailing list