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
/
HttpGet.py
diff --git
a/macros/HttpGet.py
b/macros/HttpGet.py
index 7a4b54893fb8e6ff3b1d3a6c924b36f6f4804af1..391a14429e013e03788a4b930d3df03452c1ea66 100644
(file)
--- a/
macros/HttpGet.py
+++ b/
macros/HttpGet.py
@@
-1,6
+1,6
@@
-def _macro_HttpGet(arg
v
):
- if arg
v
[1] in form:
+def _macro_HttpGet(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])