]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/blob - wrpylib/mwapi.py
beb0965242f0d9be9153df5f4c6c657abe9b00b9
[philipp/winterrodeln/wrpylib.git] / wrpylib / mwapi.py
1 #!/usr/bin/python2.7
2 # -*- coding: iso-8859-15 -*-
3 # $Id$
4 # $HeadURL$
5 """This module contains general functions for using the MediaWiki API. There is one very
6 good Python wrapper implementation of the MediaWiki API:
7 * wikitools http://code.google.com/p/python-wikitools/
8
9 Therefore this module doesn't need to have much content.
10 """
11
12 def to_title(value):
13     """Line 2237 of includes/Title.php says: $this->mTextform = str_replace( '_', ' ', $dbkey );
14     No check for None because a missing title is an error."""
15     return value.replace('_', ' ')
16
17