From: Shaun Ruffell <[email protected]>

Eliminates the following exception when clicking the feeds link from the
frontend.

Traceback:
File "/usr/local/autotest/site-packages/django/core/handlers/base.py" in 
get_response
  92.                 response = callback(request, *callback_args, 
**callback_kwargs)
File "/usr/local/autotest/frontend/afe/feeds/feed.py" in feed_view
  30.         feedgen = f(slug, request).get_feed(param)
File "/usr/local/autotest/frontend/afe/feeds/feed.py" in __init__
  50.         super(JobFeed, self).__init__(slug, request.path)
File "/usr/local/autotest/site-packages/django/contrib/syndication/feeds.py" in 
__init__
  33.         self.feed_url = self.feed_url or request.path

Exception Type: AttributeError at /afe/server/feeds/jobs/completed/
Exception Value: 'unicode' object has no attribute 'path'

Signed-off-by: Shaun Ruffell <[email protected]>
---
 frontend/afe/feeds/feed.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/frontend/afe/feeds/feed.py b/frontend/afe/feeds/feed.py
index 7479446..58ffe97 100644
--- a/frontend/afe/feeds/feed.py
+++ b/frontend/afe/feeds/feed.py
@@ -47,7 +47,7 @@ class JobFeed(feeds.Feed):
     NUM_ITEMS = 20
 
     def __init__(self, slug, request):
-        super(JobFeed, self).__init__(slug, request.path)
+        super(JobFeed, self).__init__(slug, request)
         server_hostname = django.http.get_host(request)
         self.full_link = 'http://' + server_hostname + self.link
 
-- 
1.7.1.86.g0e460

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to