[Erp5-report] r24318 - /erp5/trunk/products/ERP5/Document/Image.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Oct 24 16:03:42 CEST 2008


Author: jm
Date: Fri Oct 24 16:03:39 2008
New Revision: 24318

URL: http://svn.erp5.org?rev=24318&view=rev
Log:
Update info when Image is updated by HTTP/FTP.

Modified:
    erp5/trunk/products/ERP5/Document/Image.py

Modified: erp5/trunk/products/ERP5/Document/Image.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Image.py?rev=24318&r1=24317&r2=24318&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Image.py (original)
+++ erp5/trunk/products/ERP5/Document/Image.py Fri Oct 24 16:03:39 2008
@@ -525,7 +525,13 @@
     """
     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
   #




More information about the Erp5-report mailing list