def __init__(self, thoonk, feed): """ Create a new SortedFeed object for a given Thoonk feed. Note: More than one SortedFeed objects may be create for the same Thoonk feed, and creating a SortedFeed object does not automatically generate the Thoonk feed itself. Arguments: thoonk -- The main Thoonk object. feed -- The name of the feed. config -- Optional dictionary of configuration values. """ Feed.__init__(self, thoonk, feed) self.feed_id_incr = 'feed.idincr:%s' % feed self.feed_position = 'feed.position:%s' % feed
def get_schemas(self): """Return the set of Redis keys used exclusively by this feed.""" schema = set((self.feed_id_incr,)) return schema.union(Feed.get_schemas(self))
def get_schemas(self): """Return the set of Redis keys used exclusively by this feed.""" schema = set((self.feed_id_incr, )) return schema.union(Feed.get_schemas(self))