[Checkins] SVN: Zope/trunk/src/Products/ZODBMountPoint/MountedObject.py Following Hanno's advice

Andreas Jung andreas at andreas-jung.com
Tue May 12 05:21:37 EDT 2009


Log message for revision 99867:
  Following Hanno's advice
  """
  Please do no longer assume everything has an AQ wrapper.
  context._p_jar.add(aq_base(o))
  works just as well.
  """
  

Changed:
  U   Zope/trunk/src/Products/ZODBMountPoint/MountedObject.py

-=-
Modified: Zope/trunk/src/Products/ZODBMountPoint/MountedObject.py
===================================================================
--- Zope/trunk/src/Products/ZODBMountPoint/MountedObject.py	2009-05-12 08:49:29 UTC (rev 99866)
+++ Zope/trunk/src/Products/ZODBMountPoint/MountedObject.py	2009-05-12 09:21:37 UTC (rev 99867)
@@ -59,7 +59,7 @@
         factory = guarded_getattr(dispatcher, 'manage_addFolder')
         factory(id)
         o = context.restrictedTraverse(id)
-        context._p_jar.add(o.aq_base)
+        context._p_jar.add(aq_base(o))
         return o
 
     def traverseOrConstruct(self, path, omit_final=0):



More information about the Checkins mailing list