[Zope-Checkins] CVS: Zope/lib/python/OFS - PropertySheets.py:1.86
Brian Lloyd
brian@zope.com
Wed, 14 Aug 2002 12:54:35 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv1344
Modified Files:
PropertySheets.py
Log Message:
Merged fix for bug 332.
=== Zope/lib/python/OFS/PropertySheets.py 1.85 => 1.86 ===
--- Zope/lib/python/OFS/PropertySheets.py:1.85 Thu Aug 1 12:00:39 2002
+++ Zope/lib/python/OFS/PropertySheets.py Wed Aug 14 12:54:34 2002
@@ -12,6 +12,7 @@
##############################################################################
"""Property sheets"""
+
__version__='$Revision$'[11:-2]
import time, App.Management, Globals
@@ -26,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):
@@ -120,8 +122,10 @@
# space identifier.
if id in self.__reserved_ids:
- raise ValueError, "'%s' is a reserved Id (forbidden Ids are: %s) " % \
- (id, self.__reserved_ids)
+ raise ValueError(
+ "'%s' is a reserved Id (forbidden Ids are: %s) " % (
+ id, self.__reserved_ids
+ ))
self.id=id
self._md=md or {}
@@ -514,7 +518,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 ''