###
# mw - VCS-like nonsense for MediaWiki websites
-# Copyright (C) 2009 Ian Weller <ian@ianweller.org>
+# Copyright (C) 2010 Ian Weller <ian@ianweller.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
import urllib
import urllib2
+
class API(object):
+
def __init__(self, api_url):
self.api_url = api_url
self.cookiejar = cookielib.CookieJar()
name = name.replace('/', '!')
return name
+
def filename_to_pagename(name):
name = name.replace('!', '/')
name = name.replace('_', ' ')