Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/d/j/django-birdland-0.1a1/src/birdland/feeds.py   django-birdland(Download)
    def items(self):
        return published_entries.all()[:settings.NUM_ENTRIES_IN_FEEDS]
 
class LatestEntriesAtomFeed(LatestEntriesFeed):
    feed_type = Atom1Feed
    def items(self, obj):
        return published_entries.by_author(obj)[:settings.NUM_ENTRIES_IN_FEEDS]
 
class LatestEntriesByAuthorAtomFeed(LatestEntriesByAuthorFeed):
    feed_type = Atom1Feed
        def items(self, obj):
            return TaggedItem.objects.get_by_model(published_entries.filter(), obj)[:settings.NUM_ENTRIES_IN_FEEDS]
 
    class LatestEntriesByTagAtomFeed(LatestEntriesByTagFeed):
        feed_type = Atom1Feed