Commits

ben...@pollen.nymphormation.net  committed 50d1e31

fix rss feed

  • Participants
  • Parent commits b3b32e5

Comments (0)

Files changed (2)

File friendpaste/urls.py

         'paste/changeset': views.view_changeset,
         'paste/revisions': views.view_revisions,
         'paste/rss': views.view_rss,
-        'settings': views.settings,
+        'settings': views.fpsettings,
         'paste/all_languages': views.get_all_languages,
         'generic/about': views.about,
         'generic/services': views.services,

File friendpaste/views.py

 
 import simplejson as json
 
-import friendpaste.settings as settings
+from friendpaste import settings
 from friendpaste.feeds import RssFeed, RssFeedEntry 
 from friendpaste.http import FPResponse, send_json
 from friendpaste.models import Paste
                     
         feed.add_entry(RssFeedEntry(
             title="%s revision %s" % (revision.title, revision.revid),
-            link= "%s/%s?rev=%s" % (settings.SITE_URI, id, revision.revid),
+            link= "%s/%s?rev=%s" % (settings.SITE_URI, id, revision.nb_revision),
             description=description,
             **{ 
                 'published': datetimestr_topython(revision.created),
     response.headers['content-type'] = 'application/javascript'
     return response
 
-def settings(request):
+def fpsettings(request):
     if request.method == "POST":
         try:
             data = json.loads(request.data)