[Erp5-report] r34352 jerome - /erp5/trunk/products/ERP5Type/Tool/ClassTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 8 09:39:46 CEST 2010


Author: jerome
Date: Thu Apr  8 09:39:45 2010
New Revision: 34352

URL: http://svn.erp5.org?rev=34352&view=rev
Log:
* call _aq_reset when reimporting
* don't copy the signature of wl_lockmapping, just pass through arguments

Modified:
    erp5/trunk/products/ERP5Type/Tool/ClassTool.py

Modified: erp5/trunk/products/ERP5Type/Tool/ClassTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Tool/ClassTool.py?rev=34352&r1=34351&r2=34352&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Tool/ClassTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Tool/ClassTool.py [utf8] Thu Apr  8 09:39:45 2010
@@ -184,11 +184,9 @@
       # replace it by a method that delegates to portal classes
       return self._folder.write(self.getId(), data, create=False)
 
-    def wl_lockmapping(self, killinvalids=0, create=0):
+    def wl_lockmapping(self, *args, **kw):
       # We store web dav locks on portal classes itself
-      return self.aq_parent.aq_parent.wl_lockmapping(
-                      killinvalids=killinvalids,
-                      create=create)
+      return self.aq_parent.aq_parent.wl_lockmapping(*args, **kw)
 
   InitializeClass(FileProxy)
 
@@ -220,6 +218,7 @@
     def reimport(self, status, class_id):
       if status and self.__importer is not None:
         self.__importer(class_id)
+        _aq_reset()
       
     def _getOb(self, key, default=_MARKER ):
       if key in self.objectIds():




More information about the Erp5-report mailing list