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

Evan Simpson evan@zope.com
Wed, 10 Oct 2001 11:45:00 -0400


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

Modified Files:
	PropertySheets.py 
Log Message:
Make collections recognize __dav_collection__


=== Packages/OFS/PropertySheets.py 1.77 => 1.78 ===
     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 ''