view backend/couchdb/Feed.py @ 138:2642c8d89bdc

added TODO item
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 24 Aug 2011 09:15:29 +0200
parents 7217b060b39c
children 2cd30af937fa
line wrap: on
line source


class Feed(object):
    @staticmethod
    def all(database):
        viewResults = database.view("feedtest/feeds")
        return [Feed(row) for row in viewResults]

    def __init__(self, row):
        self.row = row

    def __getattr__(self, key):
        return self.row.value[key]