Wiki Web Service: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(pre (Imported from MoinMoin))
(correct links (Imported from MoinMoin))
Line 5: Line 5:
* If it is not, it pulls the current revision of the page and serves that inside a <code><nowiki><div class="WikiContent"></nowiki></code>.
* If it is not, it pulls the current revision of the page and serves that inside a <code><nowiki><div class="WikiContent"></nowiki></code>.


Additionally the webservice has to do a lot of [[WikiDocs Conversion|WikiDocsConversion]] stuff. Since that is quite complex, we will have to make very judicious usage of caching.
Additionally the webservice has to do a lot of [[Wiki Doc Conversion|WikiDocConversion]] stuff. Since that is quite complex, we will have to make very judicious usage of caching.


===Old /wd/ Mechanism===
===Old /wd/ Mechanism===
Line 21: Line 21:
* The url should be changed so something more meaningful, since most mb urls will have that form. I suggest [http://www.musicbrainz.org/doc/AboutMusicBrainz http://www.musicbrainz.org/doc/AboutMusicBrainz] .
* The url should be changed so something more meaningful, since most mb urls will have that form. I suggest [http://www.musicbrainz.org/doc/AboutMusicBrainz http://www.musicbrainz.org/doc/AboutMusicBrainz] .


The page about the (old) [[Wiki Docs Converter|WikiDocsConverter]] lists a couple of features that the web service will have to do now.
The page about the (old) [[Wiki Docs Converter|WikiDocsConverter]] lists a couple of features that the web service will have to do now. I renamed that page to [[Wiki Doc Conversion|WikiDocConversion]], and wil try to update it.


Not that [[Moin Moin|MoinMoin]] has a [[MoinMoin:ThemesMacro|ThemesMacro]]. If you install that you can call a theme via the url like this [http://moinmoin.wikiwikiweb.de/ThemeMarket?action=theme&theme=matrix http://moinmoin.wikiwikiweb.de/ThemeMarket?action=theme&theme=matrix]. So if the [[WikiDocs Conversion|WikiDocsConversion]] starts to become complex, it might be a solution to do all this stuff with a theme, instead of with Perl meddling with html.
Not that [[Moin Moin|MoinMoin]] has a [[MoinMoin:ThemesMacro|ThemesMacro]]. If you install that you can call a theme via the url like this [http://moinmoin.wikiwikiweb.de/ThemeMarket?action=theme&theme=matrix http://moinmoin.wikiwikiweb.de/ThemeMarket?action=theme&theme=matrix]. So if the [[WikiDocs Conversion|WikiDocsConversion]] starts to become complex, it might be a solution to do all this stuff with a theme, instead of with Perl meddling with html.

Revision as of 21:30, 26 October 2005

The WikiWebService is a component of the planned WikiDocs. This component will display pages from the MusicBrainzWiki as uneditable webpages within the normal header, footer, menubar etc. of the MusicBrainz website.

The webservice has to check, whether the requested page is listed in the ModeratedRevisionTable.

  • If it is, it pulls the last moderated revision from the MusicBrainzWiki and serves that inside a <div class="WikiDocsContent">.
  • If it is not, it pulls the current revision of the page and serves that inside a <div class="WikiContent">.

Additionally the webservice has to do a lot of WikiDocConversion stuff. Since that is quite complex, we will have to make very judicious usage of caching.

Old /wd/ Mechanism

MatthiasFriedrich explained me how the content of a MoinMoin wiki page is displayed on the MusicBrainz MainSite:

New /doc/ Meachnism

The page about the (old) WikiDocsConverter lists a couple of features that the web service will have to do now. I renamed that page to WikiDocConversion, and wil try to update it.

Not that MoinMoin has a ThemesMacro. If you install that you can call a theme via the url like this http://moinmoin.wikiwikiweb.de/ThemeMarket?action=theme&theme=matrix. So if the WikiDocsConversion starts to become complex, it might be a solution to do all this stuff with a theme, instead of with Perl meddling with html.