[Checkins] SVN: zope.session/trunk/ Added an explicit `provides` for the IClientId adapter in adapter.zcml. This allow more readability and prevents any conflict if interfaces are implemented by the `str` python builtin.

Souheil CHELFOUH souheil at chelfouh.com
Tue Feb 15 13:55:06 EST 2011


Log message for revision 120351:
  Added an explicit `provides` for the IClientId adapter in adapter.zcml. This allow more readability and prevents any conflict if interfaces are implemented by the `str` python builtin.
  

Changed:
  U   zope.session/trunk/CHANGES.txt
  U   zope.session/trunk/src/zope/session/adapters.zcml

-=-
Modified: zope.session/trunk/CHANGES.txt
===================================================================
--- zope.session/trunk/CHANGES.txt	2011-02-15 18:44:56 UTC (rev 120350)
+++ zope.session/trunk/CHANGES.txt	2011-02-15 18:55:06 UTC (rev 120351)
@@ -4,9 +4,12 @@
 3.9.4 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- Added an explicit `provides` to the IClientId adapter declaration in
+  adapter.zcml.
 
+- ...
 
+
 3.9.3 (2010-09-25)
 ------------------
 
@@ -33,11 +36,13 @@
   Also, make ICookieClientIdManager's "namespace" field an ASCIILine, so
   it accepts only non-unicode strings for cookie names.
 
+
 3.9.1 (2009-04-20)
 ------------------
 
 - Restore compatibility with Python 2.4.
 
+
 3.9.0 (2009-03-19)
 ------------------
 
@@ -65,6 +70,7 @@
 
 - Update package's description a bit.
 
+
 3.8.1 (2009-02-23)
 ------------------
 
@@ -75,12 +81,14 @@
 - Python 2.6 compatibility change. Encode strings before calling hmac.new()
   as the function no longer accepts the unicode() type.
 
+
 3.8.0 (2008-12-31)
 ------------------
 
 - Add missing test dependency on ``zope.site`` and
   ``zope.app.publication``.
 
+
 3.7.1 (2008-12-30)
 ------------------
 
@@ -101,6 +109,7 @@
   broken caches handing the same client id out to multiple users. (Of
   course, it doesn't help if caches are broken enough to cache POSTs.)
 
+
 3.6.0 (2008-08-12)
 ------------------
 
@@ -116,12 +125,14 @@
   prevent the header from being cached.  This is to minimize risk from
   broken caches handing the same client id out to multiple users.
 
+
 3.5.2 (2008-06-12)
 ------------------
 
 - Remove ConflictErrors caused on SessionData caused by setting
   ``lastAccessTime``.
 
+
 3.5.1 (2008-04-30)
 ------------------
 

Modified: zope.session/trunk/src/zope/session/adapters.zcml
===================================================================
--- zope.session/trunk/src/zope/session/adapters.zcml	2011-02-15 18:44:56 UTC (rev 120350)
+++ zope.session/trunk/src/zope/session/adapters.zcml	2011-02-15 18:55:06 UTC (rev 120351)
@@ -2,7 +2,8 @@
 
   <adapter
       factory=".session.ClientId"
-      permission="zope.Public" 
+      provides=".interfaces.IClientId"
+      permission="zope.Public"
       />
 
   <adapter



More information about the checkins mailing list