[CMF-checkins] SVN: CMF/branches/1.5/CMFCore/FSFile.py Shut up a
deprecation warning.
Stefan H. Holek
stefan at epy.co.at
Fri Feb 24 12:06:58 EST 2006
Log message for revision 41777:
Shut up a deprecation warning.
Changed:
U CMF/branches/1.5/CMFCore/FSFile.py
-=-
Modified: CMF/branches/1.5/CMFCore/FSFile.py
===================================================================
--- CMF/branches/1.5/CMFCore/FSFile.py 2006-02-24 17:06:22 UTC (rev 41776)
+++ CMF/branches/1.5/CMFCore/FSFile.py 2006-02-24 17:06:57 UTC (rev 41777)
@@ -19,9 +19,12 @@
from AccessControl import ClassSecurityInfo
from DateTime import DateTime
from OFS.Cache import Cacheable
-from OFS.content_types import guess_content_type
from OFS.Image import File
from webdav.common import rfc1123_date
+try:
+ from zope.app.content_types import guess_content_type
+except ImportError: # BBB: for Zope < 2.9
+ from OFS.content_types import guess_content_type
from DirectoryView import registerFileExtension
from DirectoryView import registerMetaType
More information about the CMF-checkins
mailing list