[Zope-Checkins] CVS: Packages/OFS - PropertySheets.py:1.63.4.10

Evan Simpson evan@zope.com
Fri, 28 Sep 2001 13:21:06 -0400


Update of /cvs-repository/Packages/OFS
In directory cvs.zope.org:/tmp/cvs-serv31336

Modified Files:
      Tag: zope-2_3-branch
	PropertySheets.py 
Log Message:
Properly recognize DAV collections


=== Packages/OFS/PropertySheets.py 1.63.4.9 => 1.63.4.10 ===
     def dav__resourcetype(self):
         vself=self.v_self()
-        if hasattr(aq_base(vself), 'isAnObjectManager') and \
-           vself.isAnObjectManager:
+        if (hasattr(vself, '__dav_collection__') or
+            getattr(aq_base(vself), 'isAnObjectManager', None)):
             return '<n:collection/>'
         return ''