Пример #1
0
    def gather_choices(self):
        temp = dict()

        # Create a new feed object dict from the possibly changed information
        for feed in self.feed_list:  # For each feed in our temporary ListStore
            feed_name = feed[0]
            feed_uri = feed[1]
            temp[feed_name] = Feed(feed_name, feed_uri)

            if feed_name in self.choices:
                if self.choices[feed_name].uri == feed_uri:
                    temp[feed_name].items = self.choices[feed_name].items
        return temp