Attachment 'patch-1.5b2-wikiform.py'

Download

   1 52,54c52
   2 <             wrapper = ('<textarea', '</textarea>\n')
   3 <         if fields['type'] == '"select"':
   4 <             wrapper = ('<select', '</select>\n')
   5 ---
   6 >             wrapper = ('<textarea', '></textarea>\n')
   7 57d54
   8 <         special_value = ''
   9 60,70c57,58
  10 <             if key == 'text':
  11 <                 special_value += '>' + val[1:-1]
  12 <                 continue
  13 <             if key == 'options':
  14 <                 special_value += '>\n'
  15 <                 for opt in val[1:-1].split(','):
  16 <                     special_value += '<option value="%s">%s</option>\n' % (opt, opt)
  17 <                 continue
  18 <             else:
  19 <                 result += ' %s=%s' % (key, val)
  20 <         result += special_value + wrapper[1]
  21 ---
  22 >             result = '%s %s=%s' % (result, key, val)
  23 >         result = result + wrapper[1]

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.