[Zope-CVS] CVS: Products/Ape/lib/apelib/fs - connection.py:1.7.2.3
Shane Hathaway
shane at zope.com
Thu Feb 26 10:03:16 EST 2004
Update of /cvs-repository/Products/Ape/lib/apelib/fs
In directory cvs.zope.org:/tmp/cvs-serv28241/lib/apelib/fs
Modified Files:
Tag: ape-fs-oid-branch
connection.py
Log Message:
Fixed a small bug in opening existing databases.
Also added a test of opening existing databases.
=== Products/Ape/lib/apelib/fs/connection.py 1.7.2.2 => 1.7.2.3 ===
--- Products/Ape/lib/apelib/fs/connection.py:1.7.2.2 Wed Feb 25 22:08:54 2004
+++ Products/Ape/lib/apelib/fs/connection.py Thu Feb 26 10:02:45 2004
@@ -151,7 +151,7 @@
dir_path = self.getPath(oid)
contents = self.afs.computeContents(dir_path)
fn_to_name, name_to_fn = contents
- existing = self.table.getChildren(oid)
+ existing = self.table.getChildren(oid) or {}
for name, child_oid in children:
assert child_oid
if existing.has_key(name) and existing[name] != child_oid:
More information about the Zope-CVS
mailing list