[Checkins] SVN: zc.intid/trunk/src/zc/intid/ correct some docstrings, and add explanation to a test
Fred Drake
fdrake at gmail.com
Fri Nov 20 08:39:36 EST 2009
Log message for revision 105904:
correct some docstrings, and add explanation to a test
Changed:
U zc.intid/trunk/src/zc/intid/__init__.py
U zc.intid/trunk/src/zc/intid/tests.py
U zc.intid/trunk/src/zc/intid/utility.py
-=-
Modified: zc.intid/trunk/src/zc/intid/__init__.py
===================================================================
--- zc.intid/trunk/src/zc/intid/__init__.py 2009-11-20 10:49:26 UTC (rev 105903)
+++ zc.intid/trunk/src/zc/intid/__init__.py 2009-11-20 13:39:35 UTC (rev 105904)
@@ -49,8 +49,6 @@
def register(ob):
"""Register an object and returns a unique id generated for it.
- The object *must* be adaptable to IKeyReference.
-
If the object is already registered, its id is returned anyway.
"""
Modified: zc.intid/trunk/src/zc/intid/tests.py
===================================================================
--- zc.intid/trunk/src/zc/intid/tests.py 2009-11-20 10:49:26 UTC (rev 105903)
+++ zc.intid/trunk/src/zc/intid/tests.py 2009-11-20 13:39:35 UTC (rev 105904)
@@ -45,6 +45,14 @@
zc.intid.IIntIds, self.createIntIds())
def test_non_keyreferences(self):
+ #
+ # This test, copied from zope.intid, was used in that context to
+ # determine that failed adaptaions to IKeyReference did not
+ # cause unexpected behaviors from the API.
+ #
+ # In zc.intid, this simple ensures that the behaviors don't
+ # differ from that of zope.intid.
+ #
u = self.createIntIds()
obj = object()
Modified: zc.intid/trunk/src/zc/intid/utility.py
===================================================================
--- zc.intid/trunk/src/zc/intid/utility.py 2009-11-20 10:49:26 UTC (rev 105903)
+++ zc.intid/trunk/src/zc/intid/utility.py 2009-11-20 13:39:35 UTC (rev 105904)
@@ -37,7 +37,8 @@
"""This utility provides a two way mapping between objects and
integer ids.
- IKeyReferences to objects are stored in the indexes.
+ The objects are stored directly in the internal structures.
+
"""
zope.interface.implements(
More information about the checkins
mailing list