2005-04-16 Wikis

After the rewrite of the unit tests I can finally return to the occasional programming for Oddmuse. On today’s list was the Oddmuse:Long Table Markup Extension which had two bugs:

Oddmuse

Oddmuse:Long Table Markup Extension

1. Additional newlines somehow got added, so that for multiline entries, you’d get one paragraph per line. I wonder why I never noticed this. I guess I only used one-liners...

2. When using more than one table per page, it would only work for the labels defined in the first table. All other labels were ignored. This usually meant that remaining tables just disappeared if they did not share labels with the first table.

And I wrote two unit tests to go with this. Great. 😄

Migration

Today I’m also looking at three wikis I might want to migrate to the latest Oddmuse. The first one has revision 1.226:

$Id: wiki.pl,v 1.226 2003/10/28 18:32:51 as Exp $

So here’s what I did:

1. Locked the site via Oddmuse:Editlock Action.

2. Downloaded, installed, and ran upgrade-files.pl – the site was already converted to the 0x1E separator, and it was already converted to UTF8. So I picked “Oddmuse” and unchecked the conversion from Latin-1 to UTF-8.

3. Copied the wrapper script, downloaded the new version of the main script, changed the wrapper script copy to use the new main script, and tried it. Seemed to work.

4. Created a modules subdirectory and installed the Oddmuse:Usemod Markup Extension.

5. Looked at old revisions and diffs to make sure that they got rendered correctly.

6. Searched for (\n[*#;:]+)([^ ​#;:!])<code> and replaced it with $1 $2. Checked the result for some of the pages. Looking good.*

7. Found several instances that matched (^[*#;:]+)([^ ​#;:!])<code>. Fixed those with the same replacement.*

8. Checked that no ^# !<*code> or ^# REDIRECT had to be fixed.*

9. Installed Oddmuse:Automatic Link Back, because I found a $RefererTracking = 1<*code> setting in the config file.*

10. Checked for HTML in HtmlHeaders, UserGotoBar, FooterNote, and EditNote (should be changed to XHTML).

11. Checked for MyRules (should be rewritten as described on Oddmuse:Upgrading Issues).

12. Copied the new script over the old one, checked, and deleted the new wrapper script.

13. Regenerated the HTML Cache by running the Oddmuse:All Action with the cache=0 parameter.

Oddmuse:Editlock Action

upgrade-files.pl

Oddmuse:Usemod Markup Extension

Oddmuse:Automatic Link Back

Oddmuse:Upgrading Issues

Oddmuse:All Action

​#Wikis