[Zope-Checkins] CVS: Zope2 - PropertySheets.py:1.63.4.6
Brian Lloyd
brian@digicool.com
Mon, 9 Apr 2001 10:24:54 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/OFS
In directory korak:/home/brian/temp/zope-23-branch/lib/python/OFS
Modified Files:
Tag: zope-2_3-branch
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:39:09 1.63.4.5
+++ PropertySheets.py 2001/04/09 14:24:52 1.63.4.6
@@ -578,6 +578,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):