[Zope-Checkins] CVS: Releases/Zope/lib/python/OFS - History.py:1.10.16.1
Evan Simpson
evan@zope.com
Fri, 15 Feb 2002 12:58:41 -0500
Update of /cvs-repository/Releases/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv16869
Modified Files:
Tag: Zope-2_5-branch
History.py
Log Message:
Don't raise TemporalParadox if nothing actually changed.
=== Releases/Zope/lib/python/OFS/History.py 1.10 => 1.10.16.1 ===
return getattr(self.__base__, name)
- def commit(*args, **kw):
- raise TemporalParadox, "You can\'t change history!"
-
- tpc_begin = tpc_finish = commit
+ def commit(self, object, transaction):
+ if object._p_changed:
+ raise TemporalParadox, "You can\'t change history!"
def abort(*args, **kw): pass
+
+ tpc_begin = tpc_finish = abort
def historicalRevision(self, serial):
state=self._p_jar.oldstate(self, serial)