Re: [PATCH 1/2] Store NTP servers in self.data and set them up also on the installed system | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
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
[Home] [Fedora Users] [Fedora Legacy List] [Fedora Maintainers] [Fedora Desktop] [Red Hat 9 Bible] [Fedora Bible] [Fedora SELinux] [Big List of Linux Books] [Yosemite News] [Yosemite Photos] [KDE Users] [Fedora Tools]