[Erp5-report] r10884 - /erp5/trunk/products/ERP5/Document/Domain.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 23 14:33:02 CEST 2006
Author: seb
Date: Mon Oct 23 14:33:00 2006
New Revision: 10884
URL: http://svn.erp5.org?rev=10884&view=rev
Log:
use newContent with temp_object to generate temp domain
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=10884&r1=10883&r2=10884&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Domain.py (original)
+++ erp5/trunk/products/ERP5/Document/Domain.py Mon Oct 23 14:33:00 2006
@@ -114,8 +114,7 @@
"""
We generate temp domain here because we must set an aquisition wrapper
"""
- from Products.ERP5Type.Document import newTempDomain
- domain = newTempDomain(self, id)
+ domain = self.newContent(id=id, portal_type='Domain', temp_object=1)
domain = domain.__of__(self)
return domain
More information about the Erp5-report
mailing list