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 _______________________________________________ CMF-checkins mailing list [email protected] http://mail.zope.org/mailman/listinfo/cmf-checkins
