[Zope-dev] isDavCollection vs. isAnObjectManager

yuppie y.2005- at wcm-solutions.de
Fri Nov 4 07:25:02 EST 2005


Hi!


Is there any good reason why a true 'isAnObjectManager' makes an object 
a DAV collection?

I'd like to check in this small patch on the trunk:

Index: PropertySheets.py
===================================================================
--- PropertySheets.py	(revision 39879)
+++ PropertySheets.py	(working copy)
@@ -533,8 +533,7 @@

      def dav__resourcetype(self):
          vself=self.v_self()
-        if (isDavCollection(vself) or
-            getattr(aq_base(vself), 'isAnObjectManager', None)):
+        if isDavCollection(vself):
              return '<n:collection/>'
          return ''


AFAICS it doesn't break anything in Zope itself and that change would 
allow to map folderish objects to a file instead of a directory by 
setting __dav_collection__ to False.

Any objections?


Cheers,

	Yuppie




More information about the Zope-Dev mailing list