[Zope-CVS] CVS: Products/AdaptableStorage - Zope2Mapper.py:1.8

Shane Hathaway shane@zope.com
Thu, 6 Feb 2003 12:55:56 -0500


Update of /cvs-repository/Products/AdaptableStorage
In directory cvs.zope.org:/tmp/cvs-serv12047

Modified Files:
	Zope2Mapper.py 
Log Message:
Gave images and files the correct automatic extension according to the
mimetypes module.


=== Products/AdaptableStorage/Zope2Mapper.py 1.7 => 1.8 ===
--- Products/AdaptableStorage/Zope2Mapper.py:1.7	Wed Feb  5 11:55:50 2003
+++ Products/AdaptableStorage/Zope2Mapper.py	Thu Feb  6 12:55:24 2003
@@ -73,6 +73,7 @@
     s.addAspect('data', FilePData())
     s.addAspect('remainder', remainder_aspect)
     classifier.registerDefaultLoader('File', 'OFS.Image.File', 0)
+    classifier.setFlags('OFS.Image.File', classifier.CONTENT_TYPE_ATTR)
 
     # image mapper
     m = root_mapper.addSubMapper('OFS.Image.Image')
@@ -84,6 +85,7 @@
     s.addAspect('remainder', remainder_aspect)
     classifier.register('Image', 'OFS.Image.Image', (
         '.gif', '.jpg', '.jpeg', '.png'))
+    classifier.setFlags('OFS.Image.Image', classifier.CONTENT_TYPE_ATTR)
 
     # page template mapper
     m = root_mapper.addSubMapper('ZopePageTemplate')  # abbreviated name