Community help wikis per release

Phil Bull philbull at gmail.com
Tue Oct 23 10:59:59 UTC 2007


Hi Adam,

On Mon, 2007-10-22 at 16:21 -0400, Adam Sommer wrote:
> I reworked the macro to pull the version numbers from a wiki page
> named "UbuntuVersions", the name can be changed to whatever though, in
> the page I listed each version separated by commas.  I used the code
> you pointed out to grab the version strings then match them with the
> strings passed through the macro arguments.  This should minimize the
> maintenance burden, because the UbuntuVersions page can be easily
> updated for each release. 

That's amazing! I owe you a beer!

> It works great for me, but again I'm using the moinmoin shipped with
> Gutsy.  One thing with coding it this way is I'm not sure how to code
> it so it will match multiple misspellings of a release?  Also, after
> attending today's Open Week meeting on Launchpad I imported the code
> into a bzr branch: 

To match misspellings it could just match keywords (which may be
misspelled) to version strings. On the wiki page, you would have a list
of keyword/version string pairings like this:

7.04,Ubuntu 7.04 (Feisty Fawn)
704,Ubuntu 7.04 (Feisty Fawn)
feisty,Ubuntu 7.04 (Feisty Fawn)
fesity,Ubuntu 7.04 (Feisty Fawn)
fiesty,Ubuntu 7.04 (Feisty Fawn)
edgy,Ubuntu 6.10 (Edgy Eft)
etc.

The macro would read the entire list into a dict or a list. Then, it
could go through the macro arguments one by one and try to match them to
a row in the dict, outputting the version string which corresponds to
that keyword. This would remove the need to import re too.

Thanks,

Phil

-- 
Phil Bull
http://www.launchpad.net/people/philbull





More information about the ubuntu-doc mailing list