Käyttäjä:KonttiBot/scoutwiki family.py

PartioWikistä
< Käyttäjä:KonttiBot
Versio hetkellä 4. huhtikuuta 2006 kello 13.04 – tehnyt KonttiBot (keskustelu | muokkaukset)
(ero) ← Vanhempi versio | Nykyinen versio (ero) | Uudempi versio → (ero)
Siirry navigaatioon Siirry hakuun

Tulee kansioon families

# -*- coding: utf-8  -*-
import family

# Put a short description of your project here.

class Family(family.Family):
    def __init__(self):
        family.Family.__init__(self)
        self.name = 'PartioWiki' # insert the same name you put into the filename
        
        self.langs = {
            'fi':'wiki.partio.net', # put the hostname here.
        }
            
        # Most namespaces are inherited from family.Family.
        
        self.namespaces[4] = {
            '_default': u'PartioWiki',
        }
        self.namespaces[5] = {
            '_default': u'Keskustelu PartioWikista',
        }

    def version(self, code):
        return "1.5.6"

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