From 37b41b7628a9bd7d81f9889517138aabab51e110 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 24 Nov 2009 16:40:01 +0000
Subject: [PATCH] portal_types is not used here

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30849 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Rule.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/product/ERP5/Document/Rule.py b/product/ERP5/Document/Rule.py
index 4ef35992b9..25427c56ee 100644
--- a/product/ERP5/Document/Rule.py
+++ b/product/ERP5/Document/Rule.py
@@ -30,7 +30,6 @@
 
 import zope.interface
 from AccessControl import ClassSecurityInfo
-from Products.CMFCore.utils import getToolByName
 from Products.ERP5Type import Permissions, PropertySheet, interfaces
 from Products.ERP5Type.XMLObject import XMLObject
 from Products.ERP5.Document.Predicate import Predicate
@@ -109,7 +108,6 @@ class Rule(Predicate, XMLObject):
       Creates a new applied rule which points to self
     """
     # XXX Parameter **kw is useless, so, we should remove it
-    portal_types = getToolByName(self, 'portal_types')
     if id is None:
       id = context.generateNewId()
     if getattr(aq_base(context), id, None) is None:
-- 
2.30.9