projects
/
geekigeeki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chdir into data_dir to simplify a few things
[geekigeeki.git]
/
macros
/
HttpPost.py
diff --git
a/macros/HttpPost.py
b/macros/HttpPost.py
old mode 100755
(executable)
new mode 100644
(file)
index
ce61f79
..
bf2ed01
--- a/
macros/HttpPost.py
+++ b/
macros/HttpPost.py
@@
-1,6
+1,6
@@
-def _macro_HttpPost(
argv
):
- if arg
v
[1] in form:
+def _macro_HttpPost(
*args, **kvargs
):
+ if arg
s
[1] in form:
return form[argv[1]].value
return form[argv[1]].value
- elif len(arg
v
) > 2:
- return arg
v
[2] # default value
- r
eturn ''
+ elif len(arg
s
) > 2:
+ return arg
s
[2] # default value
+ r
aise Exception("Undefined argument " + args[1])