[CMF-checkins] CVS: CMF/CMFDefault - File.py:1.18.32.3 Image.py:1.16.32.3
Tres Seaver
tseaver@zope.com
Tue, 6 Aug 2002 13:47:37 -0400
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv25841/CMFDefault
Modified Files:
Tag: CMF-1_3-branch
File.py Image.py
Log Message:
- Fixed Image and File so that they reindex on PUT.
=== CMF/CMFDefault/File.py 1.18.32.2 => 1.18.32.3 ===
'attachment; filename=%s' % self.getId())
return OFS.Image.File.index_html(self, REQUEST, RESPONSE)
+ security.declareProtected(CMFCorePermissions.ModifyPortalContent, 'PUT')
+ def PUT(self, REQUEST, RESPONSE):
+ """ Handle HTTP (and presumably FTP?) PUT requests """
+ OFS.Image.File.PUT( self, REQUEST, RESPONSE )
+ self.reindexObject()
+
InitializeClass(File)
=== CMF/CMFDefault/Image.py 1.16.32.2 => 1.16.32.3 ===
# return self.view(self, REQUEST)
return OFS.Image.Image.index_html(self, REQUEST, RESPONSE)
+ security.declareProtected(CMFCorePermissions.ModifyPortalContent, 'PUT')
+ def PUT(self, REQUEST, RESPONSE):
+ """ Handle HTTP (and presumably FTP?) PUT requests """
+ OFS.Image.Image.PUT( self, REQUEST, RESPONSE )
+ self.reindexObject()
+
InitializeClass(Image)