Commit c1f406fb authored by Jim Fulton's avatar Jim Fulton

Added missing abort method.

parent c4ca527a
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
"""Database connection support """Database connection support
$Id: Connection.py,v 1.6 1999/05/18 15:55:09 jim Exp $""" $Id: Connection.py,v 1.7 1999/05/24 21:46:21 jim Exp $"""
__version__='$Revision: 1.6 $'[11:-2] __version__='$Revision: 1.7 $'[11:-2]
from cPickleCache import PickleCache from cPickleCache import PickleCache
from POSException import ConflictError, ExportError from POSException import ConflictError, ExportError
...@@ -220,6 +220,13 @@ class Connection(ExportImport.ExportImport): ...@@ -220,6 +220,13 @@ class Connection(ExportImport.ExportImport):
return self return self
def abort(self, object, transaction):
"""Abort the object in the transaction.
This just deactivates the thing.
"""
del object._p_changed
def close(self): def close(self):
self._incrgc() self._incrgc()
self._db._closeConnection(self) self._db._closeConnection(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment