From 95801c49178d1583a54969317be05fb41217ce3d Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 29 Dec 2008 17:35:24 -0800 Subject: [PATCH] Potential fix for a bug in which product downloads and attached file downloads occasionally did not complete in Internet Explorer. If this is the correct fix, then the problem was actually just a caching issue that affected http downloads in IE. --- NEWS | 2 ++ controller/Files.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index b883c04..6e07870 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ 1.5.12: * Fixed a bug in which clicking on the notebook rename text field ended the renaming prematurely. + * Potential fix for a bug in which product downloads and attached file + downloads occasionally did not complete in Internet Explorer. 1.5.11: December 27, 2008 * Added a font selection button to the toolbar. diff --git a/controller/Files.py b/controller/Files.py index 0c3072f..2b51c6d 100644 --- a/controller/Files.py +++ b/controller/Files.py @@ -15,7 +15,7 @@ from Expose import expose from Validate import validate, Valid_int, Valid_bool, Validation_error from Database import Valid_id, end_transaction from Users import grab_user_id, Access_error -from Expire import strongly_expire +from Expire import strongly_expire, weakly_expire from model.File import File from model.User import User from model.Notebook import Notebook @@ -262,6 +262,7 @@ class Files( object ): self.__download_products = download_products @expose() + @weakly_expire @end_transaction @grab_user_id @validate( @@ -323,6 +324,7 @@ class Files( object ): return stream() @expose() + @weakly_expire @end_transaction @validate( access_id = Valid_id(), @@ -409,6 +411,7 @@ class Files( object ): ) @expose() + @weakly_expire @end_transaction @grab_user_id @validate( @@ -471,6 +474,7 @@ class Files( object ): return stream( image_buffer ) @expose() + @weakly_expire @end_transaction @grab_user_id @validate(