[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/SQLScript - SQLScript.py:1.9

Albertas Agejevas alga@codeworks.lt
Mon, 25 Nov 2002 08:48:08 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/SQLScript
In directory cvs.zope.org:/tmp/cvs-serv25234/OFS/Content/SQLScript

Modified Files:
	SQLScript.py 
Log Message:
Cleaned up the RAMCache.

Removed all the references to Request from RAMCache, removed 'view' parameters
from the ICache interface.


=== Zope3/lib/python/Zope/App/OFS/Content/SQLScript/SQLScript.py 1.8 => 1.9 ===
--- Zope3/lib/python/Zope/App/OFS/Content/SQLScript/SQLScript.py:1.8	Mon Oct  7 05:54:39 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/SQLScript/SQLScript.py	Mon Nov 25 08:48:07 2002
@@ -148,12 +148,12 @@
         cache = getCacheForObj(self)
         if cache:
             _marker = []
-            result = cache.query(self, keywords={'query': query}, default=_marker)
+            result = cache.query(self, {'query': query}, default=_marker)
             if result is not _marker:
                 return result
         result = queryForResults(connection, query)
         if cache:
-            cache.set(result, self, keywords={'query': query})
+            cache.set(result, self, {'query': query})
         return result
 
     __call__ = ContextMethod(__call__)