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


_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to