Commit 4dc43710 authored by Nicolas Delaby's avatar Nicolas Delaby

Use accessor

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28948 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7b732549
...@@ -168,7 +168,7 @@ class File(Document, CMFFile, ConversionCacheMixin): ...@@ -168,7 +168,7 @@ class File(Document, CMFFile, ConversionCacheMixin):
if fname: if fname:
content_type,enc = mimetypes.guess_type(fname) content_type,enc = mimetypes.guess_type(fname)
if content_type is not None: if content_type is not None:
self.content_type = content_type self.setContentType(content_type)
return content_type return content_type
security.declareProtected(Permissions.ModifyPortalContent,'PUT') security.declareProtected(Permissions.ModifyPortalContent,'PUT')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment