[Erp5-report] r37752 jm - /erp5/trunk/products/ERP5Type/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 12 14:24:52 CEST 2010
Author: jm
Date: Thu Aug 12 14:24:42 2010
New Revision: 37752
URL: http://svn.erp5.org?rev=37752&view=rev
Log:
Base.asContext does return a temporary document
Modified:
erp5/trunk/products/ERP5Type/Base.py
Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=37752&r1=37751&r2=37752&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Thu Aug 12 14:24:42 2010
@@ -2813,7 +2813,8 @@ class Base( CopyContainer,
context.__dict__.update(kw)
# Make it a temp content
temp_object = TempBase(self.getId())
- for k in ('isIndexable', 'reindexObject', 'recursiveReindexObject', 'activate', 'setUid', ):
+ for k in ('isIndexable', 'isTempDocument', 'reindexObject',
+ 'recursiveReindexObject', 'activate', 'setUid'):
setattr(context, k, getattr(temp_object, k))
# Return result
return context.__of__(self.aq_parent)
More information about the Erp5-report
mailing list