The ScoutWiki Network server was offline since Friday 26th April because of a boot problem in the host server. All services should be back to normal since Sunday 12:00 (UTC). We apologise for any inconvenience caused by the outage.

Bot configuration/scoutwiki family.py

From ScoutWiki Network
Jump to: navigation, search
# -*- coding: utf-8 -*-

from pywikibot import family
from pywikibot.tools import deprecated


class Family(family.Family):
    interwiki_removals = ['ja','scout-o-wi']
    def __init__(self):
        family.Family.__init__(self)
        self.name = 'scoutwiki'
        self.langs = {
            'de': 'de.scoutwiki.org',
            'fi': 'fi.scoutwiki.org',
            'sv': 'sv.scoutwiki.org',
            'nl': 'nl.scoutwiki.org',
            'uk': 'uk.scoutwiki.org',
            'ar': 'ar.scoutwiki.org',
            'eo': 'eo.scoutwiki.org',
            'it': 'it.scoutwiki.org',
            'cs': 'cs.scoutwiki.org',
            'en': 'en.scoutwiki.org',
            'da': 'da.scoutwiki.org',
            'fr': 'fr.scoutwiki.org',
            'pt': 'pt.scoutwiki.org',
            'hu': 'wiki.cserkesz.hu',
            'es': 'wiki.larocadelconsejo.net',
            'scout-o-wiki': 'www.scout-o-wiki.de'
        }

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

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


    def ignore_certificate_error(self, code):
        return True