|
[
Permlink
| « Hide
]
Damjan Georgievski added a comment - 20/Apr/06 12:22 AM
Isn't it better if mod_python would be able to use the other Apache modules (like mod_dav)?
Having mod_python directly know about other modules, such as mod_dav, means that there then exists a dependency on the other modules. This means that the core mod_python developers would need to be knowledgeable about all the other modules and it would increase the size of the code base dramatically. This would be a highly impractical situation as it would delay development and new releases of mod_python because any problem with support for one third party module would delay any release of mod_python as a whole. By exposing the internals and having something like mod_dav_python be separate, it can live its own life with the mod_python developers not needing to worry what happens with it. If mod_dav_python were never completed or people lost interest in it, it would not matter as no effort has been wasted on it by core developers and its aborted development wouldn't have impacted on mod_python core.
The mod_python core is quite simple at this stage, lets leave it this way rather than turning it in some bit of bloat ware of which the majority only use a small bit. :-)
Graham Dumpleton made changes - 20/Aug/06 05:47 AM
Graham Dumpleton made changes - 20/Aug/06 05:47 AM
Attached "mptest.tar.gz". This provides an example of how these functions can be used in practice.
So far all functions described except for that for creating filter objects has been created and added to subversion trunk. It could be argued that if wanting to build filters one should just use mod_python and so possibly not much sense providing access to such a function. This can be reviewed later as necessary. Other functions which could be investigated for inclusion are ones for determining interpreter based on target of request, access to PythonOption and PythonConfig tables objects etc.
Graham Dumpleton made changes - 20/Aug/06 07:54 AM
Graham Dumpleton made changes - 20/Aug/06 08:00 AM
Graham Dumpleton made changes - 20/Aug/06 08:00 AM
Graham Dumpleton made changes - 20/Aug/06 08:15 AM
Third time lucky with code. Wasn't returning status correctly and ensuring that cleanup done properly.
Graham Dumpleton made changes - 20/Aug/06 08:19 AM
Graham Dumpleton made changes - 20/Aug/06 09:43 AM
Final go at working example in attachment. The code in mod_python works fine, I just keep mucking up the example. All looks okay now. :-)
Graham Dumpleton made changes - 20/Aug/06 09:45 AM
Anything else related to this can be done as enhancement later.
Graham Dumpleton made changes - 11/Sep/06 10:08 AM
Graham Dumpleton made changes - 17/Apr/07 10:40 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||