Remove un-usefull call to len

This commit is contained in:
Cédric Krier committed 2008-02-03 00:15:21 +01:00
1 parent 49a255dbfd
commit 4dcea3f044
1 file changed
+1 -1
+1 -1
View File
@@ -126,7 +126,7 @@ class ViewTreeModel(gtk.GenericTreeModel, gtk.TreeSortable):
tree.append([obj['id'], None, [],
obj[self.view['field_parent']]])
tree[-1][1] = [obj[y] for y in self.fields]
if len(obj[self.view['field_parent']]):
if obj[self.view['field_parent']]:
tree[-1][2] = None
else:
res = self._read(ids, self.fields)