[Ocfs2-tools-commits] manish commits r867 -
trunk/ocfs2console/ocfs2interface
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Apr 29 16:45:36 CDT 2005
Author: manish
Date: 2005-04-29 16:45:34 -0500 (Fri, 29 Apr 2005)
New Revision: 867
Modified:
trunk/ocfs2console/ocfs2interface/bosa.py
Log:
Workaround ancient pygtk's which don't support None being passed to
TreeModel.iter_children
Modified: trunk/ocfs2console/ocfs2interface/bosa.py
===================================================================
--- trunk/ocfs2console/ocfs2interface/bosa.py 2005-04-29 05:08:55 UTC (rev 866)
+++ trunk/ocfs2console/ocfs2interface/bosa.py 2005-04-29 21:45:34 UTC (rev 867)
@@ -276,7 +276,12 @@
if level.parent:
self.store[level.parent][COLUMN_INFO_OBJECT] = level.dentry
- iter = self.store.iter_children(level.parent)
+ # Argh, ancient pygtk can't handle None being passed to
+ # iter_children
+ iter = self.store.iter_children(level.parent)
+ else:
+ iter = self.store.get_iter_first()
+
self.store.remove(iter)
self.levels.remove(level)
More information about the Ocfs2-tools-commits
mailing list