[FIX] auth_oauth: decorator @fragment_to_query_string accept positional arguments

bzr revid: chs@openerp.com-20131114184550-6zm3gzxfqn2d9dwt
This commit is contained in:
Christophe Simonis 2013-11-14 19:45:50 +01:00
parent 11e95e525d
commit 2172b12817
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ _logger = logging.getLogger(__name__)
#----------------------------------------------------------
def fragment_to_query_string(func):
@functools.wraps(func)
def wrapper(self, **kw):
def wrapper(self, *a, **kw):
if not kw:
return """<html><head><script>
var l = window.location;
@ -31,7 +31,7 @@ def fragment_to_query_string(func):
}
window.location = r;
</script></head><body></body></html>"""
return func(self, **kw)
return func(self, *a, **kw)
return wrapper