Testing defaultViewable ======================= >>> import Products.Five >>> from Products.Five import zcml >>> zcml.load_config('configure.zcml', package=Products.Five) PROPFIND without defaultViewable -------------------------------- >>> print http(r""" ... PROPFIND /test_folder_1_ HTTP/1.1 ... Authorization: Basic test_user_1_:secret ... Content-Length: 250 ... Content-Type: application/xml ... Depth: 1 ... ... ... ... ... ... ... ... ... ... """, handle_errors=False) HTTP/1.1 207 Multi-Status Connection: close Content-Length: ... Content-Location: http://localhost/test_folder_1_/ Content-Type: text/xml; charset="utf-8" Date: ... /test_folder_1_/ ... ... HTTP/1.1 200 OK /test_folder_1_/acl_users ... ... HTTP/1.1 200 OK PROPFIND with defaultViewable ----------------------------- Now make the class default viewable: >>> #from Products.Five.fiveconfigure import classDefaultViewable >>> #from OFS.Folder import Folder >>> #classDefaultViewable(Folder) And try it again: >>> print http(r""" ... PROPFIND /test_folder_1_ HTTP/1.1 ... Authorization: Basic test_user_1_:secret ... Content-Length: 250 ... Content-Type: application/xml ... Depth: 1 ... ... ... ... ... ... ... ... ... ... """, handle_errors=False) HTTP/1.1 207 Multi-Status Connection: close Content-Length: ... Content-Location: http://localhost/test_folder_1_/ Content-Type: text/xml; charset="utf-8" Date: ... /test_folder_1_/ ... ... HTTP/1.1 200 OK /test_folder_1_/acl_users ... ... HTTP/1.1 200 OK Clean up -------- >>> from zope.app.testing.placelesssetup import tearDown >>> tearDown()