[CMF-checkins] CVS: CMF/CMFDefault - File.py:1.22 Image.py:1.20
Tres Seaver
tseaver@zope.com
Tue, 6 Aug 2002 13:49:05 -0400
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv26083/CMFDefault
Modified Files:
File.py Image.py
Log Message:
- Merge PUT reindex fix from 1.3 branch.
=== CMF/CMFDefault/File.py 1.21 => 1.22 ===
'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.19 => 1.20 ===
# 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)