Changeset 3887 for addcommentmacro
- Timestamp:
- 06/23/08 05:58:56 (3 months ago)
- Files:
-
- addcommentmacro/0.11/addcomment/macro.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
addcommentmacro/0.11/addcomment/macro.py
r3723 r3887 143 143 # We need to re-raise it in a post_process_request instead. 144 144 try: 145 self.env.log.debug( 146 "AddComment saved - redirecting to: %s" % page_url) 145 147 req._outheaders = [] 146 148 req.redirect(page_url) … … 190 192 action=page_url+"#commenting", 191 193 ) 192 193 add_script(req, 'common/js/wikitoolbar.js') 194 195 if not wikipreview: 196 # Wiki edit preview already adds this javascript file 197 add_script(req, 'common/js/wikitoolbar.js') 194 198 195 199 return tag.div(the_preview, the_message, the_form, id="commenting") … … 208 212 if hasattr(req, 'addcomment_raise'): 209 213 self.env.log.debug("AddCommentMacro: Re-raising RequestDone from redirect") 214 del(req.addcomment_raise) 210 215 raise RequestDone 211 216 return template, data, content_type
