zopefoundation / Products.PythonScripts

Provides support for restricted execution of Python scripts in Zope.
Other
6 stars 10 forks source link

Fix WebDAV support #40

Closed dataflake closed 4 years ago

dataflake commented 4 years ago

The inherited implementation of manage_DAVget in webdav.Resource.Resource returns the results of a call to PrincipiaSearchSource. This is incorrect for Python scripts.

Override manage_DAVget to return the results of a call to read, which will correctly render the specially formatted comments at the top that describe the parameters, bindings and the title.