[CMF-checkins] CVS: CMF/CMFDefault - Image.py:1.21 File.py:1.23
Sidnei da Silva
sidnei@x3ng.com.br
Tue, 6 Aug 2002 20:53:17 -0400
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv13739
Modified Files:
Image.py File.py
Log Message:
Someone forgot to fix some security declarations. Fixed.
=== CMF/CMFDefault/Image.py 1.20 => 1.21 ===
# return self.view(self, REQUEST)
return OFS.Image.Image.index_html(self, REQUEST, RESPONSE)
- security.declareProtected(CMFCorePermissions.ModifyPortalContent, 'PUT')
+ security.declareProtected(ModifyPortalContent, 'PUT')
def PUT(self, REQUEST, RESPONSE):
""" Handle HTTP (and presumably FTP?) PUT requests """
OFS.Image.Image.PUT( self, REQUEST, RESPONSE )
=== CMF/CMFDefault/File.py 1.22 => 1.23 ===
'attachment; filename=%s' % self.getId())
return OFS.Image.File.index_html(self, REQUEST, RESPONSE)
- security.declareProtected(CMFCorePermissions.ModifyPortalContent, 'PUT')
+ security.declareProtected(ModifyPortalContent, 'PUT')
def PUT(self, REQUEST, RESPONSE):
""" Handle HTTP (and presumably FTP?) PUT requests """
OFS.Image.File.PUT( self, REQUEST, RESPONSE )