[Zope-Checkins] CVS: Zope3/lib/python/Transaction - _defaultTransaction.py:1.1.2.8
Jim Fulton
jim@zope.com
Mon, 10 Jun 2002 15:34:45 -0400
Update of /cvs-repository/Zope3/lib/python/Transaction
In directory cvs.zope.org:/tmp/cvs-serv5490/lib/python/Transaction
Modified Files:
Tag: Zope-3x-branch
_defaultTransaction.py
Log Message:
Implemented
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/IContainerPythonification
Along the way:
- Converted most uses of has_key to use in.
- Fixed a bug in Interface names and namesAndDescriptions methods
that caused base class attributes to be missed.
=== Zope3/lib/python/Transaction/_defaultTransaction.py 1.1.2.7 => 1.1.2.8 ===
if j is not None:
i=id(j)
- if not jars.has_key(i):
+ if not (i in jars):
jars[i]=j
if subtransaction:
@@ -239,7 +239,7 @@
while subjars:
j=subjars.pop()
i=id(j)
- if not jars.has_key(i):
+ if not (i in jars):
jars[i]=j
j.commit_sub(self)