All pastes #422372 Raw Edit

Miscellany

public python v1 · immutable
·published 2007-04-03 12:45 UTC
rendered paste body
# -*- coding: utf-8  -*-import family# Pywikipedia, fkregex.sno.cc by Filnik & Snowolfclass Family(family.Family):    def __init__(self):        family.Family.__init__(self)        self.name = 'fkregex' #Set the family name; this should be the same as in the filename.        self.langs = {            'it': 'fkregex.sno.cc', #Put the hostname here.        }        self.namespaces[4] = {            '_default': u'Pywikipedia', #Specify the project namespace here. Other        }                               #namespaces will be set to MediaWiki default.        self.namespaces[5] = {            '_default': u'Discussioni Pywikipedia',        }    def version(self, code):        return "1.9.3"  #The MediaWiki version used. Not very important in most cases.    def path(self, code):        return '/index.php' #The path of index.php