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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Dec 11 04:59:53 CET 2009


Author: yo
Date: Fri Dec 11 04:59:52 2009
New Revision: 31228

URL: http://svn.erp5.org?rev=31228&view=rev
Log:
Fix it again.

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=31228&r1=31227&r2=31228&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Utils.py [utf8] Fri Dec 11 04:59:52 2009
@@ -491,6 +491,12 @@
     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.
+      #
+      # XXX some code use this constructor directly instead of
+      # through the factory system.
+      if getattr(aq_base(folder), 'Destination', None) is not None:
+        folder = folder.Destination()
       if folder.isTempObject():
         folder._setObject(id, o)
       o = o.__of__(folder)




More information about the Erp5-report mailing list