[Zope3-checkins] CVS: Zope3/src/zope/app/cache/browser -
cacheable.py:1.3 cacheableedit.pt:1.2 configure.zcml:1.2
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Mar 10 14:41:34 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/cache/browser
In directory cvs.zope.org:/tmp/cvs-serv2886/src/zope/app/cache/browser
Modified Files:
cacheable.py cacheableedit.pt configure.zcml
Log Message:
Removed the caching service. It was not providing much value anyways, so it was
easy.
Also, I updated the views in a way that SQL Script's chace support would work
again.
There is still much to do:
- zope.app.cache.caching does not have a formally defined API (interface)
- The CacheName field should be a vocabulary field.
- Views need to be updated to current form.
=== Zope3/src/zope/app/cache/browser/cacheable.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/cache/browser/cacheable.py:1.2 Sat Mar 6 11:50:17 2004
+++ Zope3/src/zope/app/cache/browser/cacheable.py Wed Mar 10 14:41:00 2004
@@ -16,7 +16,7 @@
$Id$
"""
from zope.app import zapi
-from zope.app.cache.caching import getCacheForObj, getLocationForCache
+from zope.app.cache.caching import getCacheForObject, getLocationForCache
from zope.app.form.utility import setUpEditWidgets
from zope.app.i18n import ZopeMessageIDFactory as _
from zope.app.interfaces.annotation import IAnnotatable
@@ -50,7 +50,7 @@
def invalidate(self):
"Invalidate the current cached value."
- cache = getCacheForObj(self.context)
+ cache = getCacheForObject(self.context)
location = getLocationForCache(self.context)
if cache and location:
cache.invalidate(location)
@@ -62,7 +62,7 @@
def action(self):
"Change the cacheId"
try:
- cacheId = self.cacheId.getData()
+ cacheId = self.cacheId_widget.getInputValue()
except WidgetInputError, e:
#return self.form(errors=e.errors)
return repr(e.errors)
=== Zope3/src/zope/app/cache/browser/cacheableedit.pt 1.1 => 1.2 ===
--- Zope3/src/zope/app/cache/browser/cacheableedit.pt:1.1 Mon Mar 1 05:57:35 2004
+++ Zope3/src/zope/app/cache/browser/cacheableedit.pt Wed Mar 10 14:41:00 2004
@@ -36,7 +36,7 @@
<tr>
<th class="EditAttributeName" i18n:translate="">Cache name</th>
<td class="EditAttributeValue"
- tal:content="structure view/cacheId">
+ tal:content="structure view/cacheId_widget">
<input size="20" />
</td>
</tr>
=== Zope3/src/zope/app/cache/browser/configure.zcml 1.1 => 1.2 ===
--- Zope3/src/zope/app/cache/browser/configure.zcml:1.1 Mon Mar 1 05:57:35 2004
+++ Zope3/src/zope/app/cache/browser/configure.zcml Wed Mar 10 14:41:00 2004
@@ -1,12 +1,11 @@
<zope:configure
xmlns:zope="http://namespaces.zope.org/zope"
xmlns="http://namespaces.zope.org/browser"
- i18n_domain="zope"
>
<addMenuItem
title="RAM Cache"
- description="A RAM cache is a volatile (in memory) cache for speeding up things"
+ description="A RAM cache is a volatile (in memory) cache"
class="zope.app.cache.ram.RAMCache"
permission="zope.ManageServices"
/>
More information about the Zope3-Checkins
mailing list