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.
  • [get | view] (2005-12-10 02:54:33, 2.1 KB) [[attachment:CSV.py]]
  • [get | view] (2006-10-10 10:42:36, 1.1 KB) [[attachment:box.py]]
  • [get | view] (2005-11-21 02:56:09, 0.5 KB) [[attachment:css-action.py]]
  • [get | view] (2005-11-21 02:56:33, 0.8 KB) [[attachment:css-macro.py]]
  • [get | view] (2005-11-13 12:21:38, 0.9 KB) [[attachment:patch-1.5b2-Form.py]]
  • [get | view] (2005-11-13 12:13:19, 0.8 KB) [[attachment:patch-1.5b2-wikiform.py]]
  • [get | view] (2006-05-12 12:59:21, 2.6 KB) [[attachment:todo.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.