fixed http-host in feed urls.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 13 Mar 2009 02:24:15 +0000 (02:24 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 13 Mar 2009 02:24:15 +0000 (02:24 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@171 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/syrup/views.py

index 641d84f..5e1d9c3 100644 (file)
@@ -895,5 +895,5 @@ def course_feeds(request, course_id, feed_type):
                         lastmod=lastmod,
                         render_title=render_title,
                         items=items,
-                        root='http://localhost:8000',
+                        root='http://%s' % request.get_host(),
                         _serialization='xml')