Ticket #4720: syndication-500.diff
File syndication-500.diff, 1020 bytes (added by , 17 years ago) |
---|
-
contrib/syndication/feeds.py
51 51 return attr() 52 52 return attr 53 53 54 def get_feed(self, url=None): 54 def get_object(self, bits): 55 return None 56 57 def get_feed(self, url=""): 55 58 """ 56 59 Returns a feedgenerator.DefaultFeed object, fully populated, for 57 60 this feed. Raises FeedDoesNotExist for invalid parameters. 58 61 """ 59 if url: 60 try: 61 obj = self.get_object(url.split('/')) 62 except (AttributeError, ObjectDoesNotExist): 63 raise FeedDoesNotExist 64 else: 65 obj = None 62 try: 63 obj = self.get_object(url.split('/')) 64 except (AttributeError, ObjectDoesNotExist): 65 raise FeedDoesNotExist 66 66 67 67 current_site = Site.objects.get_current() 68 68 link = self.__get_dynamic_attr('link', obj)