[Zope-CVS] SVN: zversioning/trunk/src/versioning/ test for _p_oid
is None
Uwe Oestermeier
uwe_oestermeier at iwm-kmrc.de
Wed Oct 13 17:21:47 EDT 2004
Log message for revision 28136:
test for _p_oid is None
Changed:
U zversioning/trunk/src/versioning/README.txt
U zversioning/trunk/src/versioning/storage.py
-=-
Modified: zversioning/trunk/src/versioning/README.txt
===================================================================
--- zversioning/trunk/src/versioning/README.txt 2004-10-13 21:01:57 UTC (rev 28135)
+++ zversioning/trunk/src/versioning/README.txt 2004-10-13 21:21:46 UTC (rev 28136)
@@ -35,8 +35,9 @@
>>> from versioning.tests.test_versioncontrol import buildRepository, buildDatabaseRoot
>>> db_root = buildDatabaseRoot()
-
-
+
+
+
CopyModifyMergeRepository Setup Explained
-----------------------------------------
@@ -115,8 +116,7 @@
XXX We know this is an implementation detail. We probably should think
more about this and then talk about this in the interfaces.
- >>> util.commit()
-
+
Now let's put our example data under version control:
>>> repo.applyVersionControl(sample)
Modified: zversioning/trunk/src/versioning/storage.py
===================================================================
--- zversioning/trunk/src/versioning/storage.py 2004-10-13 21:01:57 UTC (rev 28135)
+++ zversioning/trunk/src/versioning/storage.py 2004-10-13 21:21:46 UTC (rev 28136)
@@ -75,7 +75,7 @@
a ticket that remains stable across time.
"""
if obj._p_oid is None :
- raise RuntimeError("cannot version unsaved objects")
+ raise RuntimeError("cannot version uncommited objects")
return str(obj._p_oid)
def register(self, obj):
More information about the Zope-CVS
mailing list