projects
/
geekigeeki_data.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move macros in sys/
[geekigeeki_data.git]
/
sys
/
macros
/
HttpPost.py
diff --git a/sys/macros/HttpPost.py
b/sys/macros/HttpPost.py
new file mode 100644
(file)
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])