[Checkins] SVN: zope.app.cache/tags/3.4.1/ Release zope.app.cache
3.4.1.
Marius Gedminas
marius at pov.lt
Wed Jul 30 13:39:05 EDT 2008
Log message for revision 89046:
Release zope.app.cache 3.4.1.
Changed:
A zope.app.cache/tags/3.4.1/
D zope.app.cache/tags/3.4.1/CHANGES.txt
A zope.app.cache/tags/3.4.1/CHANGES.txt
D zope.app.cache/tags/3.4.1/setup.py
A zope.app.cache/tags/3.4.1/setup.py
D zope.app.cache/tags/3.4.1/src/zope/app/cache/browser/cacheable.py
A zope.app.cache/tags/3.4.1/src/zope/app/cache/browser/cacheable.py
-=-
Copied: zope.app.cache/tags/3.4.1 (from rev 88973, zope.app.cache/trunk)
Deleted: zope.app.cache/tags/3.4.1/CHANGES.txt
===================================================================
--- zope.app.cache/trunk/CHANGES.txt 2008-07-29 17:14:26 UTC (rev 88973)
+++ zope.app.cache/tags/3.4.1/CHANGES.txt 2008-07-30 17:39:04 UTC (rev 89046)
@@ -1,8 +0,0 @@
-=======
-CHANGES
-=======
-
-3.4.0 (2007-10-11)
-------------------
-
-- Initial release independent of the main Zope tree.
Copied: zope.app.cache/tags/3.4.1/CHANGES.txt (from rev 89045, zope.app.cache/trunk/CHANGES.txt)
===================================================================
--- zope.app.cache/tags/3.4.1/CHANGES.txt (rev 0)
+++ zope.app.cache/tags/3.4.1/CHANGES.txt 2008-07-30 17:39:04 UTC (rev 89046)
@@ -0,0 +1,18 @@
+=======
+CHANGES
+=======
+
+3.4.1 (2008-07-30)
+------------------
+
+- Remove find-links from buildout.cfg.
+
+- Get rid of zope.app.zapi as a dependency. See http://launchpad.net/bugs/219302
+
+- Fixed deprecation warning in zope.app.cache.browser.cacheable: zope.app.i18n
+ became zope.i18nmessageid.
+
+3.4.0 (2007-10-11)
+------------------
+
+- Initial release independent of the main Zope tree.
Deleted: zope.app.cache/tags/3.4.1/setup.py
===================================================================
--- zope.app.cache/trunk/setup.py 2008-07-29 17:14:26 UTC (rev 88973)
+++ zope.app.cache/tags/3.4.1/setup.py 2008-07-30 17:39:04 UTC (rev 89046)
@@ -1,68 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Setup for zope.app.cache package
-
-$Id$
-"""
-import os
-from setuptools import setup, find_packages
-
-def read(*rnames):
- return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-
-setup(name = 'zope.app.cache',
- version = '3.4.0',
- author='Zope Corporation and Contributors',
- author_email='zope3-dev at zope.org',
- description='Zope Caching Framework',
- long_description=(
- read('README.txt')
- + '\n\n' +
- read('CHANGES.txt')
- ),
- keywords = "zope3 cache",
- classifiers = [
- 'Development Status :: 5 - Production/Stable',
- 'Environment :: Web Environment',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: Zope Public License',
- 'Programming Language :: Python',
- 'Natural Language :: English',
- 'Operating System :: OS Independent',
- 'Topic :: Internet :: WWW/HTTP',
- 'Framework :: Zope3'],
- url='http://cheeseshop.python.org/pypi/zope.app.cache',
- license='ZPL 2.1',
- packages=find_packages('src'),
- package_dir = {'': 'src'},
- namespace_packages=['zope', 'zope.app'],
- extras_require = dict(test=['zope.app.testing',]),
- install_requires = [
- 'setuptools',
- 'ZODB3',
- 'zope.annotation',
- 'zope.app.component',
- 'zope.app.container',
- 'zope.app.form',
- 'zope.app.pagetemplate',
- 'zope.component',
- 'zope.interface',
- 'zope.proxy',
- 'zope.publisher',
- 'zope.schema',
- 'zope.traversing',
- ],
- include_package_data = True,
- zip_safe = False,
- )
Copied: zope.app.cache/tags/3.4.1/setup.py (from rev 89045, zope.app.cache/trunk/setup.py)
===================================================================
--- zope.app.cache/tags/3.4.1/setup.py (rev 0)
+++ zope.app.cache/tags/3.4.1/setup.py 2008-07-30 17:39:04 UTC (rev 89046)
@@ -0,0 +1,68 @@
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Setup for zope.app.cache package
+
+$Id$
+"""
+import os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup(name = 'zope.app.cache',
+ version = '3.4.1',
+ author='Zope Corporation and Contributors',
+ author_email='zope3-dev at zope.org',
+ description='Zope Caching Framework',
+ long_description=(
+ read('README.txt')
+ + '\n\n' +
+ read('CHANGES.txt')
+ ),
+ keywords = "zope3 cache",
+ classifiers = [
+ 'Development Status :: 5 - Production/Stable',
+ 'Environment :: Web Environment',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: Zope Public License',
+ 'Programming Language :: Python',
+ 'Natural Language :: English',
+ 'Operating System :: OS Independent',
+ 'Topic :: Internet :: WWW/HTTP',
+ 'Framework :: Zope3'],
+ url='http://cheeseshop.python.org/pypi/zope.app.cache',
+ license='ZPL 2.1',
+ packages=find_packages('src'),
+ package_dir = {'': 'src'},
+ namespace_packages=['zope', 'zope.app'],
+ extras_require = dict(test=['zope.app.testing',]),
+ install_requires = [
+ 'setuptools',
+ 'ZODB3',
+ 'zope.annotation',
+ 'zope.app.component',
+ 'zope.app.container',
+ 'zope.app.form',
+ 'zope.app.pagetemplate',
+ 'zope.component',
+ 'zope.interface',
+ 'zope.proxy',
+ 'zope.publisher',
+ 'zope.schema',
+ 'zope.traversing',
+ ],
+ include_package_data = True,
+ zip_safe = False,
+ )
Deleted: zope.app.cache/tags/3.4.1/src/zope/app/cache/browser/cacheable.py
===================================================================
--- zope.app.cache/trunk/src/zope/app/cache/browser/cacheable.py 2008-07-29 17:14:26 UTC (rev 88973)
+++ zope.app.cache/tags/3.4.1/src/zope/app/cache/browser/cacheable.py 2008-07-30 17:39:04 UTC (rev 89046)
@@ -1,79 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Management view for binding caches to content objects.
-
-$Id$
-"""
-__docformat__ = 'restructuredtext'
-
-from zope.component import getMultiAdapter
-from zope.publisher.browser import BrowserView
-from zope.annotation.interfaces import IAnnotatable
-
-from zope.app.cache.caching import getCacheForObject, getLocationForCache
-from zope.app.form.utility import setUpEditWidgets
-from zope.app.i18n import ZopeMessageFactory as _
-from zope.app.cache.interfaces import ICacheable
-from zope.app.form.interfaces import WidgetInputError
-from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
-
-class CacheableView(BrowserView):
-
- __used_for__ = IAnnotatable
-
- form = ViewPageTemplateFile("cacheableedit.pt")
-
- def __init__(self, *args):
- super(CacheableView, self).__init__(*args)
- self.cacheable = ICacheable(self.context)
- setUpEditWidgets(self, ICacheable, self.cacheable)
-
- def current_cache_id(self):
- "Returns the current cache ID."
- return self.cacheable.getCacheId()
-
- def current_cache_url(self):
- "Returns the current cache provider's URL."
- cache = getCacheForObject(self.context)
- absolute_url = getMultiAdapter((cache, self.request),
- name='absolute_url')
- try:
- return absolute_url()
- except TypeError:
- # In case the cache object is a global one and does not have a
- # location, then we just return None.
- return None
-
- def invalidate(self):
- "Invalidate the current cached value."
-
- cache = getCacheForObject(self.context)
- location = getLocationForCache(self.context)
- if cache and location:
- cache.invalidate(location)
- return self.form(message=_("cache-invalidated", u"Invalidated."))
- else:
- return self.form(message=_("no-cache-associated",
- u"No cache associated with object."))
-
- def action(self):
- "Change the cacheId"
- try:
- cacheId = self.cacheId_widget.getInputValue()
- except WidgetInputError, e:
- #return self.form(errors=e.errors)
- return repr(e.errors)
- else:
- self.cacheable.setCacheId(cacheId)
- return self.form(message=_(u"Saved changes."))
Copied: zope.app.cache/tags/3.4.1/src/zope/app/cache/browser/cacheable.py (from rev 89028, zope.app.cache/trunk/src/zope/app/cache/browser/cacheable.py)
===================================================================
--- zope.app.cache/tags/3.4.1/src/zope/app/cache/browser/cacheable.py (rev 0)
+++ zope.app.cache/tags/3.4.1/src/zope/app/cache/browser/cacheable.py 2008-07-30 17:39:04 UTC (rev 89046)
@@ -0,0 +1,79 @@
+##############################################################################
+#
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Management view for binding caches to content objects.
+
+$Id$
+"""
+__docformat__ = 'restructuredtext'
+
+from zope.component import getMultiAdapter
+from zope.publisher.browser import BrowserView
+from zope.annotation.interfaces import IAnnotatable
+
+from zope.app.cache.caching import getCacheForObject, getLocationForCache
+from zope.app.form.utility import setUpEditWidgets
+from zope.i18nmessageid import ZopeMessageFactory as _
+from zope.app.cache.interfaces import ICacheable
+from zope.app.form.interfaces import WidgetInputError
+from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
+
+class CacheableView(BrowserView):
+
+ __used_for__ = IAnnotatable
+
+ form = ViewPageTemplateFile("cacheableedit.pt")
+
+ def __init__(self, *args):
+ super(CacheableView, self).__init__(*args)
+ self.cacheable = ICacheable(self.context)
+ setUpEditWidgets(self, ICacheable, self.cacheable)
+
+ def current_cache_id(self):
+ "Returns the current cache ID."
+ return self.cacheable.getCacheId()
+
+ def current_cache_url(self):
+ "Returns the current cache provider's URL."
+ cache = getCacheForObject(self.context)
+ absolute_url = getMultiAdapter((cache, self.request),
+ name='absolute_url')
+ try:
+ return absolute_url()
+ except TypeError:
+ # In case the cache object is a global one and does not have a
+ # location, then we just return None.
+ return None
+
+ def invalidate(self):
+ "Invalidate the current cached value."
+
+ cache = getCacheForObject(self.context)
+ location = getLocationForCache(self.context)
+ if cache and location:
+ cache.invalidate(location)
+ return self.form(message=_("cache-invalidated", u"Invalidated."))
+ else:
+ return self.form(message=_("no-cache-associated",
+ u"No cache associated with object."))
+
+ def action(self):
+ "Change the cacheId"
+ try:
+ cacheId = self.cacheId_widget.getInputValue()
+ except WidgetInputError, e:
+ #return self.form(errors=e.errors)
+ return repr(e.errors)
+ else:
+ self.cacheable.setCacheId(cacheId)
+ return self.form(message=_(u"Saved changes."))
More information about the Checkins
mailing list