You are not logged in Log in Join
You are here: Home » Members » comlounge » How to use DAVFs with Zope

Log in
Name

Password

 

How to use DAVFs with Zope

In here I will explain how to use dav-fs, some webdav filesystem for linux with Zope.

First of all download and install davfs, following the instructions at http://dav.sf.net/.

Then setup your Zope server to use a webdav source port. You do this by specifying the port via -W parameter of z2.py. Look into the source of z2.py for information on how to do that.

Let's assume you have the webdav source port of your Zope server then at 8080 of your local computer. In order to mount your server then via davfs on a mount point called /mnt/dav mount it via:

        mount.davfs http://localhost:8080/ /mnt/dav -u <username> -p <passwd>

where is your Zope username and the accompanied password. Be sure to do this as root as you cannot mount it otherwise. Make also sure you specify the webdav source port and not the normal web port of your server otherwise you might not have access to the files. You should also read the davfs docs in the doc/ directory of your davfs installation directory, there are more options explained.

If that's finished you can access your Zope server at /mnt/dav and edit files with your favourite text editor. Some hint for that: configure your text editor to not make backups of your files as this might change the type of the edited object. Moreover you can still use the Undo feature of Zope so it shouldn't be neccessary anyway.

Have fun with davfs! :-)