Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use webdav to upload/add files in a resource directory #6

Open
displacedaussie opened this issue May 6, 2015 · 1 comment

Comments

@displacedaussie
Copy link
Member

It would be incredibly useful if it was possible to use webdav to add/update files in a static resource directory.

plone.resource requires that directories provide IObjectManager and that files are instances of OFS.Image.File. It provides the following methods to create the correct types:

plone.app.theming makes use of the importZip method when uploading a new theme.

I'd like to be able to use webdav to connect to the server, open portal_resources/theme, then copy or update a theme from my local filesystem using my webdav client.

If you attempt to use Webdav (or FTP), the PUT method (webdav.NullResource) creates the wrong file types and then fails.

I think to allow this, we possibly need a custom PUT_factory for the static resource directory. Does this idea seem reasonable/possible? I am happy to implement it if someone can point me in the right direction.

@displacedaussie
Copy link
Member Author

This bug report covers the problems when trying to use WebDAV: https://dev.plone.org/ticket/12303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant