Commit 748e006e authored by Jim Fulton's avatar Jim Fulton

Fixed bug in __changed__.

parent f9d7e2c6
#!/usr/local/bin/python #!/usr/local/bin/python
# $What$ # $What$
__doc__='''Python implementation of persistent base types __doc__='''Python implementation of a persistent base types
$Id: Persistence.py,v 1.12 1998/03/12 15:38:51 jim Exp $'''
$Id: Persistence.py,v 1.11 1997/12/15 23:01:17 jim Exp $'''
# Copyright # Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...@@ -59,7 +58,7 @@ $Id: Persistence.py,v 1.11 1997/12/15 23:01:17 jim Exp $''' ...@@ -59,7 +58,7 @@ $Id: Persistence.py,v 1.11 1997/12/15 23:01:17 jim Exp $'''
# #
# (540) 371-6909 # (540) 371-6909
# #
__version__='$Revision: 1.11 $'[11:-2] __version__='$Revision: 1.12 $'[11:-2]
try: try:
from cPersistence import Persistent from cPersistence import Persistent
...@@ -147,10 +146,9 @@ except: ...@@ -147,10 +146,9 @@ except:
old=self._p_changed old=self._p_changed
if v != -1: if v != -1:
if v and not old and self._p_jar is not None: if v and not old and self._p_jar is not None:
try: try: get_transaction().register(self)
get_transaction().register(self)
self._p_changed=1
except: pass except: pass
self._p_changed = not not v
return old return old
...@@ -193,6 +191,9 @@ except: ...@@ -193,6 +191,9 @@ except:
############################################################################ ############################################################################
# $Log: Persistence.py,v $ # $Log: Persistence.py,v $
# Revision 1.12 1998/03/12 15:38:51 jim
# Fixed bug in __changed__.
#
# Revision 1.11 1997/12/15 23:01:17 jim # Revision 1.11 1997/12/15 23:01:17 jim
# *** empty log message *** # *** empty log message ***
# #
......
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