Commit 4ea8841c authored by 's avatar

Merged add of absattr around content_type lookup in getcontenttype

parent d8036f60
......@@ -84,7 +84,7 @@
##############################################################################
"""Property sheets"""
__version__='$Revision: 1.70 $'[11:-2]
__version__='$Revision: 1.71 $'[11:-2]
import time, string, App.Management, Globals
from webdav.WriteLockInterface import WriteLockInterface
......@@ -580,7 +580,7 @@ class DAVProperties(Virtual, PropertySheet, View):
def dav__getcontenttype(self):
vself=self.v_self()
if hasattr(vself, 'content_type'):
return vself.content_type
return absattr(vself.content_type)
if hasattr(vself, 'default_content_type'):
return absattr(vself.default_content_type)
return ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment