[mod_python] Mod Python, Webdav

Martijn Moeling martijn at xs4us.nu
Fri Nov 2 08:14:27 EDT 2007


Graham,
 
I feel the same about this topic as you do, but I simply do not have the knowledge about the apache internals to start working on it, and more importantly since the development of the linux TCP/IP stack I have been able to avoid programming in C, besides that my knowledge of C has become to little, I allways hated using that language.
So please don't shoot me for not starting on that project.
 
Thank you for the info, In this list I have found someone who did what I want and I did send him an email, all python webdav related stuff seems to be rather old. but the current development with AJAX etc. makes a demand for webdav so things might change on that.
 
Kind regards,
 
Martijn Moeling 

________________________________

Van: Graham Dumpleton [mailto:graham.dumpleton at gmail.com]
Verzonden: vr 02.11.2007 12:20
Aan: Martijn Moeling
CC: mod_python
Onderwerp: Re: [mod_python] Mod Python, Webdav



On 02/11/2007, Martijn Moeling <martijn at xs4us.nu> wrote:
>
>
>
> Hi All,
>
> I use mod_Python as a backend for my browser based desktop. (think of it as
> a WebOs)
> It is used at several places for production and it works great.
>
> Basically it consists of a MySQL database and several .py modules with
> complete templating system for serving as a CMS too. the main goal hoever is
> to be able to build web base Apps which run side by side in a javascript
> based MDI so the browser window becomes a Desktop.
>
> One of the main things an OS should do is take care of storage. and I think
> webdav is the way to go, however I would like to store the data in the MySQL
> database.
>
> Whilst searching the net I found a lot of python related WebDAV stuff but
> since I just started thinking about using WebDAV, there just might be some
> of you able to point me in the right direction.
>
> Next Webdav is just another protocol 'over' http so using mod_python it
> should not be to hard to modify existing python libs for a webdav server to
> integrate with mod python, right? or is there anything out there being used
> by one of you guy's?
>
> Any tips, product names etc is highly appreciated!!

My personal opinion is that if one wants to use Python for webdav
stuff in the context of Apache, one would be better of developing a
custom Apache module that uses a bit of custom dispatch code, but
mainly employs SWIG bindings wrapping the internal Apache APIs, in
particular, SWIG bindings which wrap the existing public APIs for the
Apache mod_dav module.

By wrapping the Apache mod_dav module you have all the hard work done
for you and you don't have to worry about interpreting all the webdav
requests, but just implementing the callbacks which respond to the
request types.

For brief details of the Apache mod_dav C API, see:

  http://docx.itscales.com/group___m_o_d___d_a_v.html

Doing just this is something on my extended TODO list. Part of the
reason for implementing mod_wsgi was to in time break open the Python
interpreter management code to make it available to companion modules
such as a Python binding for Apache mod_dav. I have already started on
SWIG bindings for the main Apache API, but because I have other stuff
I need to get done first, haven't started looking at mod_dav in
particular yet.

Graham


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20071102/db6037db/attachment.html


More information about the Mod_python mailing list