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.You are not allowed to attach a file to this page.