[CMF-checkins] CVS: CMF/CMFCore - FSFile.py:1.5
Sidnei da Silva
sidnei@x3ng.com.br
Thu, 28 Nov 2002 13:52:51 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv28704
Modified Files:
FSFile.py
Log Message:
Yay! A double method definition!
=== CMF/CMFCore/FSFile.py 1.4 => 1.5 ===
--- CMF/CMFCore/FSFile.py:1.4 Fri Nov 8 19:25:23 2002
+++ CMF/CMFCore/FSFile.py Thu Nov 28 13:52:50 2002
@@ -53,15 +53,6 @@
def _createZODBClone(self):
return File(self.getId(), '', self._readFile(1))
- def _get_content_type(self, file, body, id, content_type=None):
- headers=getattr(file, 'headers', None)
- if headers and headers.has_key('content-type'):
- content_type=headers['content-type']
- else:
- if type(body) is not type(''): body=body.data
- content_type, enc=guess_content_type(
- getattr(file, 'filename',id), body, content_type)
- return content_type
def _get_content_type(self, file, body, id, content_type=None):
headers=getattr(file, 'headers', None)