Welcome to the ScoutWiki Network

Bot configuration/scoutwiki family.py

From ScoutWiki Network
Jump to: navigation, search
# -*- coding: utf-8 -*-
"""
This family file was auto-generated by generate_family_file.py script.

Configuration parameters:
  url = https://nl.scoutwiki.org
  name = scoutwiki

Please do not commit this to the Git repository!
"""
from __future__ import absolute_import, unicode_literals

from pywikibot import family
from pywikibot.tools import deprecated


class Family(family.Family):  # noqa: D101

    name = 'scoutwiki'
    langs = {
        'eo': 'eo.scoutwiki.org',
        'en': 'en.scoutwiki.org',
        'nl': 'nl.scoutwiki.org',
        'pt': 'pt.scoutwiki.org',
        'it': 'it.scoutwiki.org',
        'de': 'de.scoutwiki.org',
        'fr': 'fr.scoutwiki.org',
        'da': 'da.scoutwiki.org',
        'ar': 'ar.scoutwiki.org',
        'uk': 'uk.scoutwiki.org',
        'cs': 'cs.scoutwiki.org',
        'fi': 'fi.scoutwiki.org',
        'sv': 'sv.scoutwiki.org',
        'asso': 'asso.scoutwiki.org',
        'scoutmedia': 'media.scoutwiki.org',
        'hu': 'wiki.cserkesz.hu',
        'es': 'wiki.larocadelconsejo.net',
        'scout-o-wiki': 'www.scout-o-wiki.de',
    }

    interwiki_removals = [ 'ja', 'nds', 'scout-o-wi' ]

    def scriptpath(self, code):
        return {
            'eo': '',
            'en': '',
            'nl': '',
            'pt': '',
            'it': '',
            'de': '',
            'fr': '',
            'da': '',
            'ar': '',
            'uk': '',
            'cs': '',
            'fi': '',
            'sv': '',
            'asso': '',
            'scoutmedia': '',
            'hu': '/w',
            'es': '',
            'scout-o-wiki': '',
        }[code]

    @deprecated('APISite.version()')
    def version(self, code):
        return {
            'eo': u'1.30.2',
            'en': u'1.30.2',
            'nl': u'1.30.2',
            'pt': u'1.30.2',
            'it': u'1.30.2',
            'de': u'1.30.2',
            'fr': u'1.30.2',
            'da': u'1.30.2',
            'ar': u'1.30.2',
            'uk': u'1.30.2',
            'cs': u'1.30.2',
            'fi': u'1.30.2',
            'sv': u'1.30.2',
            'scout-o-wiki': '1.25.5',
        }[code]

    def protocol(self, code):
        return {
            'eo': u'https',
            'en': u'https',
            'nl': u'https',
            'pt': u'https',
            'it': u'https',
            'de': u'https',
            'fr': u'https',
            'da': u'https',
            'ar': u'https',
            'uk': u'https',
            'cs': u'https',
            'fi': u'https',
            'sv': u'https',
            'asso': u'https',
            'scoutmedia': u'http',
            'hu': u'https',
            'es': u'http',
            'scout-o-wiki': u'https',
        }[code]

    closed_wikis = [ ]

    removed_wikis = ['ja', 'nds', 'scout-o-wi']

    def ignore_certificate_error(self, code):
        return True