[Erp5-report] r31225 yo - /erp5/trunk/products/ERP5Type/Utils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Dec 10 17:29:16 CET 2009


Author: yo
Date: Thu Dec 10 17:29:12 2009
New Revision: 31225

URL: http://svn.erp5.org?rev=31225&view=rev
Log:
Make the container the direct parent of a temp object. Otherwise, acquiring categories from parent do not work.

Modified:
    erp5/trunk/products/ERP5Type/Utils.py

Modified: erp5/trunk/products/ERP5Type/Utils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Utils.py?rev=31225&r1=31224&r2=31225&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Utils.py [utf8] Thu Dec 10 17:29:12 2009
@@ -491,6 +491,8 @@
     def __call__(self, folder, id, REQUEST=None,
                  activate_kw=None, is_indexable=None, reindex_kw=None, **kw):
       o = self.klass(id)
+      # Use the real container instead of the factory dispatcher.
+      folder = folder.Destination()
       if folder.isTempObject():
         folder._setObject(id, o)
       o = o.__of__(folder)




More information about the Erp5-report mailing list