def create(self, request): library_id = LibraryView().post_form_data(request) if library_id: return {'rssUri': utils.rss_url(library_id)} else: return rc.BAD_REQUEST
def __init__(self, library_id): self.amazon_url = utils.rss_url(library_id)
def rss_url(self): '''Returns the absolute rss url for this library.''' return utils.rss_url(self.id)