Command line client of MoinMoin
The existing MoinMoin editing model is GUI based. It would be good if we could have a command line client that can do the authentication, check out files, edit by vi or emacs and then check in. This would support automation of MoinMoin wiki page editing. I believe it is very useful to users who are command-line oriented.
The Perl MediaWiki command line client is an example of such tool.
In theory, you already can do a lot with XML-RPC (see MoinMoin/scripts/xmlrpc-tools). But for security reasons put page is still disabled and authentication does not work (yet).
authentication is implemented into 1.6.
You can do use the command line to add pages, see the following example
1 #!/usr/bin/env python 2 # -*- coding: iso-8859-1 -*- 3 from MoinMoin.request import request_cli 4 from MoinMoin.PageEditor import PageEditor 5 request = request_cli.Request() 6 pagename = u'TestPage' 7 page = PageEditor(request, pagename) 8 text = u"That's an example!\n" 9 try: 10 page.saveText(text, 0) 11 except page.Unchanged: 12 print "You did not change the page content, not saved!"
e.g. further examples