On Thu, 14 Jun 2007 17:57:03 -0700, Jack Bates wrote:
However the code is still very "proof of concept" - I'm still figuring
out how the code will be finally organized. Unless I can contribute this
interface to the MediaWiki project, I guess it should be organized as a
MediaWiki extension? However I'm still getting familiar with how
MediaWiki delegates requests to extensions. Most WebDAV clients demand
hierarchical URLs and don't support query strings, so I currently use
two additional PHP landing pages in the MediaWiki root directory:
* webdav.php handles WebDAV requests for articles like
webdav.php/<MediaWiki_Article_Name>
* deltav.php is responsible for DeltaV functionality. Its layout is
based on Subversion's, e.g. deltav.php/ver/<Revision_ID>,
deltav.php/bc/<Revision_ID>, etc.
If I continue using this layout, I will spend some time cleaning and
reorganizing the code. But before I do, I'd love some feedback from
MediaWiki developers: Is this a reasonable design? What are the
alternatives to and the consequences of introducing these two new
landing pages?
Without a query string, the alternative would be to use special pages,
which should be able to get the string; i.e. Special:WebDav/Article
I guess the consequence of using landing pages is that it's harder for
people without special clients to find them, which seems fairly minor
since this extension probably wouldn't be useful then.