André, thanks a lot for that great and detailed answer!
It's like everyone says the support from this mailing list is perfect.


>>  - I do not understand the link between API and APR functions/methods
>> (I am working on a Debian Server and really don't care for Windows)
>
> Can you clarify that question ? (an example, maybe)
> To me
> - the mod_perl API is the ensemble of all the mod_perl functions that you
> can call, and their interface
> - APR is the Apache Portable Runtime. That is a special part of Apache
> httpd, which offers some basic functions to access the Apache core.
> Some of the mod_perl functions interact with the APR, some with other
parts
> of Apache.
> That's the link I can see.

This answered my question, it was just some general understanding issue
about the APR, but now I think I get the idea behind it.

> There is a 3rd option : use the Apache mod_dav module as it is, but "wrap"
> it with mod_perl handlers.  (...)

> So now, to get back to your original doubts about how to go about this :
>
> You will have to provide a bit more details about what exactly you want to
do


My goal is to extend the TWiki software (written in perl) with some WebDAV
functionality, to make the attachments in the TWiki "directly editable".
I will only need GET, LOCK, PROPFIND and PUT. Other requests like COPY or
DELETE shouldn't be enabled for the TWiki files.
When someone tries to open an attachment as WebDAV file from an office tool
I need to run the TWiki function that checks if the user has the rights to
edit the attachment - for every page in the TWiki one can restrict view and
edit access to certain users/groups.
After uploading files (via DAV) I also need to run some functions from the
TWiki, to run the version management, check if the file name needs to be
protected and so on.

So I think for that, your idea about wrapping mod_dav with some mod_perl
handlers sound really interesting and could be the best way to combine
existing functionality with the TWiki without changing someone else’s code
and with the support for mod_dav.


I will need some more time to go to all the links and ideas you gave me, but
by now I'm not feeling that confused about mod_perl any more and you helped
my see the problem and a possible solution in a much clearer way.

Thanks again for the help,
Carla

Reply via email to