#!/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