Attachment 'patch-1.5b2-Form.py'
Download 1 23a24,41
2 >
3 > cmd = args.split(',')
4 > if len(cmd) == 1:
5 > formpagename = cmd[0]
6 > formaction = 'formtest'
7 > addtopage = macro.formatter.page.page_name
8 >
9 > if len(cmd) == 2:
10 > formpagename = cmd[0]
11 > formaction = cmd[1]
12 > addtopage = macro.formatter.page.page_name
13 >
14 > if len(cmd) == 3:
15 > formpagename = cmd[0]
16 > formaction = cmd[1]
17 > addtopage = cmd[2]
18 >
19 >
20 25c43
21 < pagename = args
22 ---
23 > pagename = formpagename
24 28c46,48
25 < return macro.formatter.sysmsg('Not a form page: %s' % args)
26 ---
27 > return macro.formatter.sysmsg('Not a form page: %s' % formpagename)
28 >
29 >
30 58c78,79
31 < '<input type="hidden" name="action" value="formtest">\n' % 'action')
32 ---
33 > '<input type="hidden" name="action" value="%s">\n'
34 > '<input type="hidden" name="addtopage" value="%s">\n' % ('action', formaction, addtopage))
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.