From 6bf5fa580f6f4264723d7da715e4f03b7b1c3c9e Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Fri, 24 Oct 2008 14:03:39 +0000 Subject: [PATCH] Update info when Image is updated by HTTP/FTP. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24318 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Image.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Document/Image.py b/product/ERP5/Document/Image.py index 0f21229e6b..486ab5aba8 100644 --- a/product/ERP5/Document/Image.py +++ b/product/ERP5/Document/Image.py @@ -525,7 +525,13 @@ class Image(File, OFSImage): """ File._setFile(self, *args, **kw) self._update_image_info() - + + def PUT(self, *args, **kw): + """set the file content by HTTP/FTP and reset image information. + """ + File.PUT(self, *args, **kw) + self._update_image_info() + # # FTP/WebDAV support # -- GitLab