[Zope-CVS] CVS: Products/Ape/lib/apelib/fs - structure.py:1.9

Shane Hathaway shane at zope.com
Tue Mar 16 23:00:49 EST 2004


Update of /cvs-repository/Products/Ape/lib/apelib/fs
In directory cvs.zope.org:/tmp/cvs-serv19633

Modified Files:
	structure.py 
Log Message:
Oops, the hash value of folder contents often had no child_oids.


=== Products/Ape/lib/apelib/fs/structure.py 1.8 => 1.9 ===
--- Products/Ape/lib/apelib/fs/structure.py:1.8	Sat Feb 28 15:06:27 2004
+++ Products/Ape/lib/apelib/fs/structure.py	Tue Mar 16 23:00:48 2004
@@ -104,13 +104,15 @@
             c.assignExisting(event.oid, assigned.items())
         # Return the results.
         res = []
+        hash_value = []
         for objname, child_oid in data:
             if child_oid is None:
                 child_oid = assigned[objname]
             classification = event.classify(child_oid)
             # Return info about each subobject.
             res.append((objname, child_oid, classification))
-        return res, tuple(data)
+            hash_value.append((objname, child_oid))
+        return res, tuple(hash_value)
 
     def store(self, event, state):
         c = self.getConnection(event)




More information about the Zope-CVS mailing list