[Zope-CVS] SVN: zversioning/trunk/src/versioning/storage.py test
for _p_oid == None in storage
Uwe Oestermeier
uwe_oestermeier at iwm-kmrc.de
Wed Oct 13 13:29:34 EDT 2004
Log message for revision 28118:
test for _p_oid == None in storage
Changed:
U zversioning/trunk/src/versioning/storage.py
-=-
Modified: zversioning/trunk/src/versioning/storage.py
===================================================================
--- zversioning/trunk/src/versioning/storage.py 2004-10-13 17:28:29 UTC (rev 28117)
+++ zversioning/trunk/src/versioning/storage.py 2004-10-13 17:29:34 UTC (rev 28118)
@@ -74,6 +74,8 @@
""" Returns the persistent oid of an object as
a ticket that remains stable across time.
"""
+ if obj._p_oid is None :
+ raise RuntimeError("cannot version unsaved objects")
return str(obj._p_oid)
def register(self, obj):
More information about the Zope-CVS
mailing list