Community help wikis per release
Adam Sommer
asommer70 at gmail.com
Mon Oct 22 20:21:08 UTC 2007
Phil that's a genius idea:
> It should be possible to use the MoinMoin macro API to get data from
> other wiki pages, but that looks complicated. These look like the
> relevant parts from the built-in Include.py macro (minus some code to
> set 'request' and 'fmt'):
>
> page = Page(request, "PageNameOrSomething", formatter=fmt)
> body = page.get_raw_body()
>
>
>
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.
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:
http://codebrowse.launchpad.net/~asommer70/+junk/misc/files
Should have done that earlier... heh. Feedback is very welcome.
--
Party On,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-doc/attachments/20071022/932d5387/attachment.html>
More information about the ubuntu-doc
mailing list