Commit beb283e8 authored by Sebastien Robin's avatar Sebastien Robin

use newContent with temp_object to generate temp domain


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10884 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 79d9722e
...@@ -114,8 +114,7 @@ class Domain(Predicate, MetaNode, MetaResource): ...@@ -114,8 +114,7 @@ class Domain(Predicate, MetaNode, MetaResource):
""" """
We generate temp domain here because we must set an aquisition wrapper We generate temp domain here because we must set an aquisition wrapper
""" """
from Products.ERP5Type.Document import newTempDomain domain = self.newContent(id=id, portal_type='Domain', temp_object=1)
domain = newTempDomain(self, id)
domain = domain.__of__(self) domain = domain.__of__(self)
return domain return domain
......
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