User:Darth Culator/pywikipedia

This is a family .py file for Wookieepedia edited from the one at User:Xwing328/Pywikipedia and updated for the latest MediaWiki upgrades.

A few notable differences are the increased version number, and the blank "scriptpath" definition. When I started using nightly SVNs, I got weird error messages until I set that.

import family
 * 1) -*- coding: utf-8  -*-

class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = 'starwars'

self.langs = { 'en': None, }

self.namespaces[4] = { '_default': u'Wookieepedia', }       self.namespaces[5] = { '_default': u'Wookieepedia talk', }       self.namespaces[100] = { '_default': u'Forum', }       self.namespaces[101] = { '_default': u'Forum talk', }

self.languages_by_size = ['en']

alphabetic = ['en']

def hostname(self,code): return 'starwars.wikia.com'

def code2encoding(self,code): return 'utf-8'

def version(self, code): return '1.13.1'

def path(self, code): return '/index.php'

def apipath(self, code): return '/api.php'

def scriptpath(self, code): return ''