Personal tools
You are here: Home Storage Plone webdav server through the buildout

Plone webdav server through the buildout

Posted by Rafal Zawadzki at Jun 19, 2010 03:45 PM |

Small howto about using webdav functionality in Zope

Installation of webdav server in your Zope Instance

To activate webdav server in your zope installation, add following to the [instance] section of your buildout.cfg:

zope-conf-additional =    
    <webdav-source-server>    
    address localhost:8888 
    force-connection-close off    
    </webdav

After that just rerun your buildout:

bin/buildout -Nv

and restart your instance:

bin/instance start


Using your fresh webdav server

I am Ubuntu user, so I made fast search for webdav clients:

apt-cache search webdav

and I found three which I decided to test:

sudo apt-get install davfs2 cadaver fusedav

During the installation I search troguh internet to find information about projects, and:

  • fusedav - personally I like fuse, but project looks like unmaintained since 2006,
  • davfs2 - last release in april 2010, Development Status: 5 - Production/Stable, number of version also suggests some maturity,
  • cadaver - still maintained, webpage looks like following the Unix spirit ones.

 

So, I decided to test davfs2 as the first one. At the beginning I simply mounted remote resources:

$ sudo /sbin/mount.davfs http://dav.plone.example.com/ plone.example.com/
hi bluszcz, please enter the password on machine atomic: 
Please enter the username to authenticate with server
http://dav.plone.example.com/ or hit enter for none.
  Username: bluszcz
Please enter the password to authenticate user bluszcz with server
http://dav.plone.example.com/ or hit enter for none.
  Password:
and I check what is inside of the directory:
bluszcz@atomic [(sob cze 19) 17:58]:~
$ ls plone.example.com/ |head
acl_users
archetype_tool
blog
caching_policy_manager
clients
content_type_registry
error_log
events
front-page
HTTPCache
bluszcz@atomic [(sob cze 19) 17:58]:~
$

That's everything - now you are able to upload your content using your regular favourite tools in same way like locally resource.

Comments (0)