[Zope-Checkins] CVS: Zope2 - PropertySheets.py:1.70

Brian Lloyd brian@digicool.com
Mon, 9 Apr 2001 10:25:12 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/OFS
In directory korak:/home/brian/temp/mainline_test/lib/python/OFS

Modified Files:
	PropertySheets.py 
Log Message:
fixed getcontenttype to use default_content_type if defined



--- Updated File PropertySheets.py in package Zope2 --
--- PropertySheets.py	2001/03/30 17:40:18	1.69
+++ PropertySheets.py	2001/04/09 14:25:11	1.70
@@ -581,6 +581,8 @@
         vself=self.v_self()
         if hasattr(vself, 'content_type'):
             return vself.content_type
+        if hasattr(vself, 'default_content_type'):
+            return absattr(vself.default_content_type)
         return ''
 
     def dav__getcontentlength(self):