From 3bd9ce93b888a45eda34aae04701e93ab9d6d14d Mon Sep 17 00:00:00 2001 From: "martin@piware.de" <> Date: Sun, 14 Jan 2007 14:14:55 +0100 Subject: [PATCH] add editmoin --- editmoin | 386 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 386 insertions(+) create mode 100755 editmoin diff --git a/editmoin b/editmoin new file mode 100755 index 0000000..53d7dea --- /dev/null +++ b/editmoin @@ -0,0 +1,386 @@ +#!/usr/bin/env python +""" +Copyright (c) 2002-2006 Gustavo Niemeyer + +This program allows you to edit moin (see http://moin.sourceforge.net) +pages with your preferred editor. The default editor is vi. If you want +to use any other, just set the EDITOR environment variable. + +To define your moin id used when logging in in a specifc moin, edit a +file named ~/.moin_ids and include lines like "http://moin.url/etc myid". + +WARNING: This program expects information to be in a very specific + format. It will break if this format changes, so there are + no warranties of working at all. All I can say is that it + worked for me, at least once. ;-) + +Tested moin versions: 0.9, 0.11, 1.0, 1.1, 1.3.5, 1.5, 1.5.1, 1.5.4, 1.5.5, 1.6 +""" + +__author__ = "Gustavo Niemeyer " +__version__ = "1.8" +__license__ = "GPL" + +import tempfile +import textwrap +import sys, os +import urllib +import shutil +import md5 +import re + + +USAGE = "Usage: editmoin [-t