A Dimecres 17 Maig 2006 03:20, Andrew Straw va escriure:
> I think I'm trying to remove nodes correctly (thanks again for the help
> on the last go-round), but I've encountered what appears to be a
> pytables bug in both 1.3.1 and 1.4 alpha from svn. Here's the traceback
> and a minimal program to reproduce the error.

Good catch. Solved in SVN (both trunk and 1.3 branch). I'm attaching
the cure as well:

Index: Table.py
===================================================================
--- Table.py    (revision 1590)
+++ Table.py    (revision 1591)
@@ -1756,6 +1756,7 @@
             itgroup = self._v_file._getNode(
                 _getIndexTableName(self._v_parent, self.name))
             itgroup._f_remove(recursive=True)
+            self.indexed = False   # The indexes are no longer valid

         # Remove the leaf itself from the hierarchy.
         super(Table, self)._g_remove(recursive)

Cheers,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"
 
 



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to