Commits

Radomir Dopieralski  committed 61ccf76

Connect changes_action to the RecentChanges page

  • Participants
  • Parent commits 0dad125

Comments (0)

Files changed (1)

File w/plugin/hgstore.py

         if env.get("HTTP_USER_AGENT", "").startswith("mercurial"):
             for response in self.application(env, start):
                 yield reponse
-#        elif env.get("PATH_INFO", "").startswith("/rss-log"):
-#            for response in self.application(env, start):
-#                yield reponse
+        elif unicode(urllib.unquote(env.get("PATH_INFO", "")).strip("/"), 
+            "utf-8").startswith(self.wiki.config["changes_page"]):
+            for response in changes_action(self.wiki, env, start, {}, u""):
+                yield response.encode("utf-8")
         else:
             for response in self.wsgi_orig(env, start):
                 yield response
 
-    def changes_action(self, env, start, form, title):
-        self = self.wiki
+def changes_action(self, env, start, form, title):
+        #self = self.wiki
         start("200 OK", self.default_headers)
         yield self.html_head(_(u"Recent changes"))
         yield u"<ul>"
     wrapper = HgwebWrapper(wiki.storage.repo, wiki)
     wrapper.wsgi_orig = wiki.wsgi
     wiki.wsgi = wrapper.wiki_wsgi
-    wiki.changes_action = wrapper.changes_action
+    wiki.__class__.changes_action = changes_action