Wiki Web Service

From MusicBrainz Wiki
Revision as of 21:27, 26 October 2005 by DonRedman (talk | contribs) (pre (Imported from MoinMoin))
Jump to navigationJump to search

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 WikiDocsConversion 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.

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.