Mercurial > public > sg101
view static/js/tiny_mce/plugins/advhr/rule.htm @ 629:f4c043cf55ac
Wiki integration. Requests don't always have sessions.
In particular this occurs when a request is made without a trailing slash.
The Common middleware redirects when this happens, and the middleware
process_request() processing stops before a session can get added.
So just set an attribute on the request object for each operation.
This seemed weird to me at first, but there are plenty of examples of this
in the Django code base already.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 13 Nov 2012 13:50:06 -0600 |
parents | 6c182ceb7147 |
children |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{#advhr.advhr_desc}</title> <script type="text/javascript" src="../../tiny_mce_popup.js"></script> <script type="text/javascript" src="js/rule.js"></script> <script type="text/javascript" src="../../utils/mctabs.js"></script> <script type="text/javascript" src="../../utils/form_utils.js"></script> <link href="css/advhr.css" rel="stylesheet" type="text/css" /> </head> <body role="application"> <form onsubmit="AdvHRDialog.update();return false;" action="#"> <div class="tabs"> <ul> <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advhr.advhr_desc}</a></span></li> </ul> </div> <div class="panel_wrapper"> <div id="general_panel" class="panel current"> <table role="presentation" border="0" cellpadding="4" cellspacing="0"> <tr role="group" aria-labelledby="width_label"> <td><label id="width_label" for="width">{#advhr_dlg.width}</label></td> <td class="nowrap"> <input id="width" name="width" type="text" value="" class="mceFocus" /> <span style="display:none;" id="width_unit_label">{#advhr_dlg.widthunits}</span> <select name="width2" id="width2" aria-labelledby="width_unit_label"> <option value="">px</option> <option value="%">%</option> </select> </td> </tr> <tr> <td><label for="size">{#advhr_dlg.size}</label></td> <td><select id="size" name="size"> <option value="">{#advhr_dlg.normal}</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select></td> </tr> <tr> <td><label for="noshade">{#advhr_dlg.noshade}</label></td> <td><input type="checkbox" name="noshade" id="noshade" class="radio" /></td> </tr> </table> </div> </div> <div class="mceActionPanel"> <input type="submit" id="insert" name="insert" value="{#insert}" /> <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> </div> </form> </body> </html>