[Erp5-report] r35847 nicolas - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTempla...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jun 1 10:34:36 CEST 2010
Author: nicolas
Date: Tue Jun 1 10:34:35 2010
New Revision: 35847
URL: http://svn.erp5.org?rev=35847&view=rev
Log:
index_html do not force download of files, if content-type is supported by Browser.
Force download if user ask it explicitly.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_download.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_download.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_download.xml?rev=35847&r1=35846&r2=35847&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_download.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_download.xml [utf8] Tue Jun 1 10:34:35 2010
@@ -58,6 +58,11 @@
\n
from zExceptions import Unauthorized\n
\n
+# Always force download of document event if format is supported\n
+# by browser\n
+file_name = context.getStandardFileName(None)\n
+response.setHeader(\'Content-disposition\', \'attachment; filename="%s"\' % file_name)\n
+\n
try:\n
return context.index_html(request, response)\n
except Unauthorized:\n
@@ -106,6 +111,8 @@
<string>zExceptions</string>
<string>Unauthorized</string>
<string>context</string>
+ <string>None</string>
+ <string>file_name</string>
<string>msg</string>
<string>dict</string>
</tuple>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=35847&r1=35846&r2=35847&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Tue Jun 1 10:34:35 2010
@@ -1,1 +1,1 @@
-1593
+1595
More information about the Erp5-report
mailing list