Commit dd94181d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use providedBy() instead of isImplementedBy() for zope-2.12 compatibility.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36782 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c87df06c
......@@ -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,)
......
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