Skip to content

Commit

Permalink
absolutify URL for feed validation bug 588788
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmer committed Aug 19, 2010
1 parent 5f03c72 commit 81da955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/browse/feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,5 @@ def item_pubdate(self, addon):

def item_guid(self, addon):
"""Guid for a particuar version (<item><guid>)"""
return reverse('addons.versions',
args=[addon.id, addon.current_version])
return absolutify(reverse('addons.versions',
args=[addon.id, addon.current_version]))
1 change: 0 additions & 1 deletion apps/browse/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,5 @@ def test_feed_elements_present(self):
assert item_pubdate.text == 'Tue, 17 Jan 2006 07:28:30 -0800' \
or item_pubdate.text == 'Tue, 02 Jan 2007 16:57:55 -0800'
item_guid = doc('rss channel item guid')[0]
print doc
assert item_guid.text.endswith('/versions/1.0.42') or \
item_guid.text.endswith('/versions/1.0.43')

0 comments on commit 81da955

Please sign in to comment.