[Zope-Checkins] CVS: Zope/lib/python/OFS - PropertySheets.py:1.81.4.3
Brian Lloyd
brian@zope.com
Wed, 14 Aug 2002 12:47:47 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv568
Modified Files:
Tag: Zope-2_5-branch
PropertySheets.py
Log Message:
Fix for 332
=== Zope/lib/python/OFS/PropertySheets.py 1.81.4.2 => 1.81.4.3 ===
--- Zope/lib/python/OFS/PropertySheets.py:1.81.4.2 Thu Aug 1 12:00:57 2002
+++ Zope/lib/python/OFS/PropertySheets.py Wed Aug 14 12:47:47 2002
@@ -27,6 +27,7 @@
from Traversable import Traversable
from Acquisition import aq_base
from AccessControl import getSecurityManager
+from webdav.common import isDavCollection
from cgi import escape
class View(App.Management.Tabs, Base):
@@ -512,7 +513,7 @@
def dav__resourcetype(self):
vself=self.v_self()
- if (hasattr(vself, '__dav_collection__') or
+ if (isDavCollection(vself) or
getattr(aq_base(vself), 'isAnObjectManager', None)):
return '<n:collection/>'
return ''