Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22dd922
)
Cache the target argspec in formparams.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 27 Jun 2013 05:48:34 +0000
(07:48 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 27 Jun 2013 05:48:34 +0000
(07:48 +0200)
wrw/util.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/util.py
b/wrw/util.py
index
aea3037
..
4fad6e9
100644
(file)
--- a/
wrw/util.py
+++ b/
wrw/util.py
@@
-8,9
+8,9
@@
def wsgiwrap(callable):
return wrapper
def formparams(callable):
+ spec = inspect.getargspec(callable)
def wrapper(req):
data = form.formdata(req)
- spec = inspect.getargspec(callable)
args = dict(data.items())
args["req"] = req
if not spec.keywords: