Пример #1
0
 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
Пример #2
0
 def __init__(self, library_id):
     self.amazon_url = utils.rss_url(library_id) 
Пример #3
0
 def rss_url(self):
     '''Returns the absolute rss url for this library.'''
     return utils.rss_url(self.id)