[Zope-Checkins] CVS: Zope/lib/python/App - Product.py:1.67 RefreshFuncs.py:1.7

Shane Hathaway shane at zope.com
Wed Dec 10 15:03:05 EST 2003


Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv3027

Modified Files:
	Product.py RefreshFuncs.py 
Log Message:
Updated to use resetCaches, the new name for updateCodeTimestamp.


=== Zope/lib/python/App/Product.py 1.66 => 1.67 ===
--- Zope/lib/python/App/Product.py:1.66	Tue Nov 18 08:16:58 2003
+++ Zope/lib/python/App/Product.py	Wed Dec 10 15:03:03 2003
@@ -386,7 +386,7 @@
         message = None
         if RefreshFuncs.performFullRefresh(self._p_jar, self.id):
             from ZODB import Connection
-            Connection.updateCodeTimestamp() # Clears cache in next connection.
+            Connection.resetCaches() # Clears cache in future connections.
             message = 'Product refreshed.'
         else:
             message = 'An exception occurred.'


=== Zope/lib/python/App/RefreshFuncs.py 1.6 => 1.7 ===
--- Zope/lib/python/App/RefreshFuncs.py:1.6	Wed Aug 14 17:31:40 2002
+++ Zope/lib/python/App/RefreshFuncs.py	Wed Dec 10 15:03:03 2003
@@ -318,7 +318,7 @@
     if auto_refresh_ids:
         finishAutoRefresh(jar, auto_refresh_ids)
         from ZODB import Connection
-        Connection.updateCodeTimestamp()
+        Connection.resetCaches()
         get_transaction().commit()
         jar._resetCache()
         get_transaction().begin()




More information about the Zope-Checkins mailing list