allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: add **kw to wiki methods to avoid errors from random url params
Date Tue, 13 Nov 2012 20:10:20 GMT
Updated Branches:
  refs/heads/master fbd5912b2 -> 9375a1416


add **kw to wiki methods to avoid errors from random url params


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/9375a141
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/9375a141
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/9375a141

Branch: refs/heads/master
Commit: 9375a141678017fc6941d178ac9c2d398d31f7aa
Parents: fbd5912
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Tue Nov 13 20:10:10 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Tue Nov 13 20:10:10 2012 +0000

----------------------------------------------------------------------
 ForgeWiki/forgewiki/wiki_main.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/9375a141/ForgeWiki/forgewiki/wiki_main.py
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/wiki_main.py b/ForgeWiki/forgewiki/wiki_main.py
index 88178c2..3015bbb 100644
--- a/ForgeWiki/forgewiki/wiki_main.py
+++ b/ForgeWiki/forgewiki/wiki_main.py
@@ -540,7 +540,7 @@ class PageController(BaseController):
     @expose('jinja:forgewiki:templates/wiki/page_history.html')
     @validate(dict(page=validators.Int(if_empty=0),
                    limit=validators.Int(if_empty=None)))
-    def history(self, page=0, limit=None):
+    def history(self, page=0, limit=None, **kw):
         if not self.page:
             raise exc.HTTPNotFound
         c.page_list = W.page_list
@@ -602,7 +602,7 @@ class PageController(BaseController):
     @expose('json')
     @require_post()
     @validate(dict(version=validators.Int(if_empty=1)))
-    def revert(self, version):
+    def revert(self, version, **kw):
         if not self.page:
             raise exc.HTTPNotFound
         require_access(self.page, 'edit')
@@ -671,7 +671,7 @@ class PageController(BaseController):
     @without_trailing_slash
     @expose()
     @require_post()
-    def attach(self, file_info=None):
+    def attach(self, file_info=None, **kw):
         if not self.page:
             raise exc.HTTPNotFound
         require_access(self.page, 'edit')
@@ -681,7 +681,7 @@ class PageController(BaseController):
 
     @expose()
     @validate(W.subscribe_form)
-    def subscribe(self, subscribe=None, unsubscribe=None):
+    def subscribe(self, subscribe=None, unsubscribe=None, **kw):
         if not self.page:
             raise exc.HTTPNotFound
         if subscribe:


Mime
View raw message