Commit 440adcd9 authored by Sebastien Robin's avatar Sebastien Robin

do not save data on applied rules so we must not call newContent of applied...

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
parent 0cf4d058
......@@ -67,7 +67,6 @@ class AppliedRule(XMLObject):
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.AppliedRule
, PropertySheet.Arrow
)
def tpValues(self) :
......
......@@ -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
......
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