Commit 9715a9e3 authored by Aurel's avatar Aurel

use newContent with temp_object to generate the domain tree


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10881 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 42c67a7f
......@@ -105,8 +105,7 @@ class Domain(Predicate, MetaNode, MetaResource):
We need a way to know how deep we are in the domain generation
to prevent infinite recursion XXX not implemented
"""
from Products.ERP5Type.Document import newTempDomainGenerator
klass = tmp_domain_generator = newTempDomainGenerator(self, 'new_generator')
klass = tmp_domain_generator = self.newContent(portal_type='Domain', temp_object=1)
script = self.getDomainGeneratorMethodId('')
return tmp_domain_generator.getDomainGeneratorList(depth=depth, klass=klass, script=script, parent=self)
......
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