Commit 37b41b76 authored by Jérome Perrin's avatar Jérome Perrin

portal_types is not used here


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