On Thu, Jun 07, 2012 at 03:15:05PM +0200, Vratislav Podzimek wrote: > + @property > + def servers(self): > + ret = list() > + > + itr = self._serversStore.get_iter_first() > + while itr: > + row = self._serversStore[itr] > + if row[2]: > + #server checked > + ret.append(row[0]) > + > + itr = self._serversStore.iter_next() > + > + return ret Can you use for instead? I see that serverStore is a GtkListStore but hopefully it can be iterated over in a pythonic way: for itr in self._serversStore: etc. -- Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
Attachment:
pgpm_DygY12N9.pgp
Description: PGP signature
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list