projects
/
geekigeeki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update all macros to take 2 arguments (args, kvargs)
[geekigeeki.git]
/
macros
/
HttpPost.py
diff --git
a/macros/HttpPost.py
b/macros/HttpPost.py
index ce61f79fed721d4f75dbbeb959dee42bfa44feb4..b7037c1627d5364745554d2df4dba806f77414f1 100644
(file)
--- a/
macros/HttpPost.py
+++ b/
macros/HttpPost.py
@@
-1,6
+1,6
@@
-def _macro_HttpPost(arg
v
):
- if arg
v
[1] in form:
+def _macro_HttpPost(arg
s, 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])