Commit 4924086e authored by Alexandre Boeglin's avatar Alexandre Boeglin

replaced constructContent by newContent.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2054 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad03af81
...@@ -147,10 +147,7 @@ An ERP5 Rule...""" ...@@ -147,10 +147,7 @@ An ERP5 Rule..."""
# Name the rule according to its instance id # Name the rule according to its instance id
id = self.getId() id = self.getId()
if getattr(aq_base(context), id, None) is None: if getattr(aq_base(context), id, None) is None:
portal_types.constructContent('Applied Rule', context.newContent(id=id, portal_type='Applied Rule', specialise_value=self)
context,
id,
specialise_value = self)
return context.get(id) return context.get(id)
# Simulation workflow # 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