From 440adcd9e0bb9d1e4100da6704ff5fa492f84ad1 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Thu, 7 Sep 2006 14:44:17 +0000 Subject: [PATCH] do not save data on applied rules so we must not call newContent of applied rules with **kw, as suggested by Romain git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9732 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/AppliedRule.py | 1 - product/ERP5/Document/Rule.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/product/ERP5/Document/AppliedRule.py b/product/ERP5/Document/AppliedRule.py index 15be140d7a..23794de220 100644 --- a/product/ERP5/Document/AppliedRule.py +++ b/product/ERP5/Document/AppliedRule.py @@ -67,7 +67,6 @@ class AppliedRule(XMLObject): , PropertySheet.SimpleItem , PropertySheet.CategoryCore , PropertySheet.AppliedRule - , PropertySheet.Arrow ) def tpValues(self) : diff --git a/product/ERP5/Document/Rule.py b/product/ERP5/Document/Rule.py index 798fc7ee23..3371a6db3c 100644 --- a/product/ERP5/Document/Rule.py +++ b/product/ERP5/Document/Rule.py @@ -94,7 +94,7 @@ class Rule(XMLObject, Predicate): security.declareProtected(Permissions.ModifyPortalContent, 'constructNewAppliedRule') - def constructNewAppliedRule(self, context, id=None,**kw): + def constructNewAppliedRule(self, context, id=None,activate_kw=None,**kw): """ Creates a new applied rule which points to self """ @@ -105,7 +105,8 @@ class Rule(XMLObject, Predicate): context.newContent(id=id, portal_type='Applied Rule', specialise_value=self, - **kw) + activate_kw=activate_kw, + ) return context.get(id) # Simulation workflow -- 2.30.9