[Zope-Checkins] SVN: Zope/branches/2.12/src/App/dtml/manage_page_header.dtml dunno why, sometimes RESPONSE is a None

Chris Withers chris at simplistix.co.uk
Thu Aug 26 16:51:08 EDT 2010


Log message for revision 115967:
  dunno why, sometimes RESPONSE is a None

Changed:
  U   Zope/branches/2.12/src/App/dtml/manage_page_header.dtml

-=-
Modified: Zope/branches/2.12/src/App/dtml/manage_page_header.dtml
===================================================================
--- Zope/branches/2.12/src/App/dtml/manage_page_header.dtml	2010-08-26 20:50:03 UTC (rev 115966)
+++ Zope/branches/2.12/src/App/dtml/manage_page_header.dtml	2010-08-26 20:51:08 UTC (rev 115967)
@@ -5,7 +5,7 @@
 <dtml-call "REQUEST.set('management_page_charset','utf-8')">
 </dtml-unless>
 <meta http-equiv="content-type" content="text/html;charset=&dtml-management_page_charset;" />
-<dtml-call "RESPONSE.setHeader('content-type','text/html;charset='+management_page_charset)">
+<dtml-call "RESPONSE and RESPONSE.setHeader('content-type','text/html;charset='+management_page_charset)">
 <title><dtml-if title_or_id><dtml-var title_or_id><dtml-else>Zope</dtml-if></title>
 <dtml-let ag="REQUEST.get('HTTP_USER_AGENT', '')"
      is_nav4="ag[:9] == 'Mozilla/4' and _.string.find(ag, 'MSIE') < 0"



More information about the Zope-Checkins mailing list