Wiki Web Service: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(note on ThemeMacro (Imported from MoinMoin))
(pre (Imported from MoinMoin))
Line 2: Line 2:


The webservice has to check, whether the requested page is listed in the [[Moderated Revision Table|ModeratedRevisionTable]].
The webservice has to check, whether the requested page is listed in the [[Moderated Revision Table|ModeratedRevisionTable]].
* If it is, it pulls the last moderated revision from the [[MusicBrainz Wiki|MusicBrainzWiki]] and serves that inside a <div class="[[Wiki Docs Content|WikiDocsContent]]">.
* If it is, it pulls the last moderated revision from the [[MusicBrainz Wiki|MusicBrainzWiki]] and serves that inside a <code><nowiki><div class="WikiDocsContent"></nowiki></code>.
* If it is not, it pulls the current revision of the page and serves that inside a <div class="[[Wiki Content|WikiContent]]">.
* 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 [[WikiDocs Conversion|WikiDocsConversion]] stuff. Since that is quite complex, we will have to make very judicious usage of caching.

Revision as of 21:27, 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 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.