~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/dispatch/__init__.py

  • Committer: wagrant
  • Date: 2008-09-20 09:31:13 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1057
www.dispatch.{request,html}: Allow apps to turn off the JS that is
    normally inserted into <head> by setting a property on req.

www.dispatch: Turn off the default JS when rendering errors; it's
              useless and encourages people to endanger themselves
              by enabling JS on the public site.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
        # HTML wrappers).
251
251
        
252
252
        req.write_html_head_foot = True
 
253
        req.write_javascript_settings = False
253
254
        req.write('<div id="ivle_padding">\n')
254
255
        try:
255
256
            codename, msg = req.get_http_codename(httpcode)