Changeset 2097
- Timestamp:
- 03/12/07 01:11:15 (2 years ago)
- Files:
-
- addcommentmacro/0.10/addcomment/macro.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
addcommentmacro/0.10/addcomment/macro.py
r2096 r2097 10 10 from trac.util import TracError 11 11 from trac.web.chrome import add_link 12 from trac.util.text import to_unicode 12 13 13 14 import re, time … … 50 51 disabled = '' 51 52 52 comment = Markup( hdf.getValue("args.addcomment", "")).unescape()53 comment = Markup(to_unicode(hdf.getValue("args.addcomment", ""))).unescape() 53 54 preview = hdf.getValue("args.previewaddcomment", "") 54 55 cancel = hdf.getValue("args.canceladdcomment", "") … … 94 95 out.write("<div class='system-message'><strong>ERROR: [[AddComment]] macro call must be the only content on its line. Could not add comment.</strong></div>\n") 95 96 96 out.write("<form action='%s#commentpreview' method=' get'>\n" % env.href.wiki(pagename))97 out.write("<form action='%s#commentpreview' method='post'>\n" % env.href.wiki(pagename)) 97 98 out.write("<fieldset>\n<legend>Add comment</legend>\n") 98 99 out.write("<div class='field'>\n<textarea class='wikitext' id='addcomment' name='addcomment' cols='80' rows='5'%s>" % disabled)
