[Erp5-report] r10881 - /erp5/trunk/products/ERP5/Document/Domain.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 23 14:10:07 CEST 2006


Author: aurel
Date: Mon Oct 23 14:10:05 2006
New Revision: 10881

URL: http://svn.erp5.org?rev=10881&view=rev
Log:
use newContent with temp_object to generate the domain tree

Modified:
    erp5/trunk/products/ERP5/Document/Domain.py

Modified: erp5/trunk/products/ERP5/Document/Domain.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Domain.py?rev=10881&r1=10880&r2=10881&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Domain.py (original)
+++ erp5/trunk/products/ERP5/Document/Domain.py Mon Oct 23 14:10:05 2006
@@ -105,8 +105,7 @@
     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)
 




More information about the Erp5-report mailing list