Commit 28b832c1 authored by Evan Simpson's avatar Evan Simpson

Make collections recognize __dav_collection__

parent ec7a0b07
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Property sheets""" """Property sheets"""
__version__='$Revision: 1.77 $'[11:-2] __version__='$Revision: 1.78 $'[11:-2]
import time, string, App.Management, Globals import time, string, App.Management, Globals
from webdav.WriteLockInterface import WriteLockInterface from webdav.WriteLockInterface import WriteLockInterface
...@@ -570,8 +570,8 @@ class DAVProperties(Virtual, PropertySheet, View): ...@@ -570,8 +570,8 @@ class DAVProperties(Virtual, PropertySheet, View):
def dav__resourcetype(self): def dav__resourcetype(self):
vself=self.v_self() vself=self.v_self()
if hasattr(aq_base(vself), 'isAnObjectManager') and \ if (hasattr(vself, '__dav_collection__') or
vself.isAnObjectManager: getattr(aq_base(vself), 'isAnObjectManager', None)):
return '<n:collection/>' return '<n:collection/>'
return '' 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