X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=sys%2Fmacros%2FHttpPost.py;fp=sys%2Fmacros%2FHttpPost.py;h=fbe277a1950cfc348bbf9976bbfc3350a1f78cd2;hb=fc97e515c8841f188b39fa135f57e2f37a21d45a;hp=0000000000000000000000000000000000000000;hpb=138a1577ab3fd9f25a1f5eeefe894d564a1a48e5;p=geekigeeki_data.git diff --git a/sys/macros/HttpPost.py b/sys/macros/HttpPost.py new file mode 100644 index 0000000..fbe277a --- /dev/null +++ b/sys/macros/HttpPost.py @@ -0,0 +1,8 @@ +#acl bernie:read,write All:read + +def _macro_HttpPost(*args, **kvargs): + if args[1] in form: + return form[argv[1]].value + elif len(args) > 2: + return args[2] # default value + raise Exception("Undefined argument " + args[1])