A small script to remove the extra language files from MoinMoin (probably now out-of-date)
I use “MoinMoin”:http://moinmoin.wikiwikiweb.de as a personal notebook but I’ve found that it’s a little hard to manage the backups/merges when it comes with some many default pages. Upon investigation I’ve discovered that most of these redundant pages are not even in English. Since I’m the only person using the wiki, and my human-language capabilities are limited to English, I thought I’d delete the spare, foreign language, pages. Of course, since I’m a programmer, I’d rather let the computer do this tedious task for me!
Here’s a python script that iterates through a MoinMoin directory (e.g. c:\\Moin\\notebook\\data\\pages), then reads the current version for each page directory, loads the current revision of that page, checks for “#language XX”, and if XX != en (i.e., this is not an English page), it deletes the whole page directory. This is a *very* dangerous script to use. *Always backup first!* There are no command-line options, so you have to hand-edit the paths but, hopefully, this means that you will also read the script, understand what it’s doing, and then you won’t blame me when it deletes everything on your PC!
Hi,Jamie
I like your blog’s contents…very impressive.
About the research problem on notes gathering and organizing, Recently I found a site http://wikindx.sourceforge.net/
but no time to try. Maybe you can give me a comment.
…a researcher as you are from Taiwan.