X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=macros%2FHttpGet.py;h=bc122a927044ef87664c81ffdcfface45a01140e;hb=68d4178e022cfe5946b7a574fb20aaae41d98f14;hp=391a14429e013e03788a4b930d3df03452c1ea66;hpb=b61122d9783076d85b89b8a130127e3303eb4a73;p=geekigeeki.git diff --git a/macros/HttpGet.py b/macros/HttpGet.py index 391a144..bc122a9 100644 --- a/macros/HttpGet.py +++ b/macros/HttpGet.py @@ -1,6 +1,6 @@ -def _macro_HttpGet(args, kvargs): +def _macro_HttpGet(*args, **kvargs): if args[1] in form: - return form[argv[1]].value + return form[args[1]].value elif len(args) > 2: return args[2] # default value raise Exception("Undefined argument " + args[1])