[Checkins] SVN: zope.keyreference/trunk/src/zope/keyreference/persistent.txt replaced occurrences of now-deprecated PersistentDict by PersistentMapping
Thomas Lotze
tl at gocept.com
Wed Sep 16 01:18:35 EDT 2009
Log message for revision 104118:
replaced occurrences of now-deprecated PersistentDict by PersistentMapping
Changed:
U zope.keyreference/trunk/src/zope/keyreference/persistent.txt
-=-
Modified: zope.keyreference/trunk/src/zope/keyreference/persistent.txt
===================================================================
--- zope.keyreference/trunk/src/zope/keyreference/persistent.txt 2009-09-15 22:28:30 UTC (rev 104117)
+++ zope.keyreference/trunk/src/zope/keyreference/persistent.txt 2009-09-16 05:18:35 UTC (rev 104118)
@@ -11,14 +11,14 @@
>>> from ZODB.tests.util import DB
>>> import transaction
- >>> from persistent.dict import PersistentDict
+ >>> from persistent.mapping import PersistentMapping
>>> db = DB()
>>> conn = db.open()
>>> root = conn.root()
- >>> root['ob1'] = PersistentDict()
- >>> root['ob2'] = PersistentDict()
+ >>> root['ob1'] = PersistentMapping()
+ >>> root['ob2'] = PersistentMapping()
>>> transaction.commit()
@@ -109,7 +109,7 @@
We can't get the key reference for an object that hasn't been saved
yet:
- >>> KeyReferenceToPersistent(PersistentDict())
+ >>> KeyReferenceToPersistent(PersistentMapping())
... # doctest: +ELLIPSIS
Traceback (most recent call last):
...
@@ -176,7 +176,7 @@
True
This means that KeyReferenceToPersistent will often hinder conflict resolution
-for classes such as PersistentDict.
+for classes such as PersistentMapping.
__cmp__ works unless one object is a multidatabase reference and the other is
not. Here are a few examples.
@@ -237,7 +237,7 @@
checked to see if the object has a `__parent__` that has a connection:
>>> from zope.keyreference.persistent import connectionOfPersistent
- >>> ob3 = PersistentDict()
+ >>> ob3 = PersistentMapping()
>>> print connectionOfPersistent(ob3)
None
More information about the checkins
mailing list