Commit 94153587 authored by Jim Fulton's avatar Jim Fulton

Errors arising from inserting an invalid object into the cache were masked.

parent 66e00587
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
"""Database connection support """Database connection support
$Id: Connection.py,v 1.35 2000/07/01 20:35:03 jim Exp $""" $Id: Connection.py,v 1.36 2000/07/06 19:36:54 jim Exp $"""
__version__='$Revision: 1.35 $'[11:-2] __version__='$Revision: 1.36 $'[11:-2]
from cPickleCache import PickleCache from cPickleCache import PickleCache
from POSException import ConflictError, ExportError from POSException import ConflictError, ExportError
...@@ -370,6 +370,8 @@ class Connection(ExportImport.ExportImport): ...@@ -370,6 +370,8 @@ class Connection(ExportImport.ExportImport):
# Dang, I bet its wrapped: # Dang, I bet its wrapped:
if hasattr(object, 'aq_base'): if hasattr(object, 'aq_base'):
cache[oid]=object.aq_base cache[oid]=object.aq_base
else:
raise
def commit_sub(self, t, def commit_sub(self, t,
_type=type, _st=type(''), _None=None): _type=type, _st=type(''), _None=None):
......
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