vikidia_family.py :  » Network » Python-Wikipedia-Robot-Framework » pywikipedia » families » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Network » Python Wikipedia Robot Framework 
Python Wikipedia Robot Framework » pywikipedia » families » vikidia_family.py
# -*- coding: utf-8  -*-
__version__ = '$Id$'

import family

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

        self.langs = {
            'fr': 'fr.vikidia.org',
            'es': 'es.vikidia.org',
        }

        self.namespaces[1] = {
            'fr': [u'Discussion', u'Discuter'],
            'es': u'Conversacin acerca de',
        }
        self.namespaces[3] = {
            'fr': [u'Discussion utilisateur', u'Discussion Utilisateur'],
            'es': [u'Mensajes de usuario', u'Usuario Discusin'],
        }
        self.namespaces[4] = {
            '_default': [u'Vikidia', self.namespaces[4]['_default']], # REQUIRED
        }
        self.namespaces[5] = {
            '_default': [u'Discussion Vikidia', self.namespaces[5]['_default']],
            'es' : u'Conversacin acerca de Vikidia',
        }
        self.namespaces[6] = {
            'fr': [u'Fichier', u'Image'],
            'es': [u'Archivo', u'Image', u'Imagen'],
        }
        self.namespaces[7] = {
            'fr': [u'Discussion fichier', u'Image talk', u'Discussion Fichier',
                   u'Discussion Image'],
            'es': [u'Conversacin acerca de imagen', u'Image talk', u'Imagen Discusin'],
        }
        self.namespaces[11] = {
            'fr': [u'Discussion modle', u'Discussion Modle'],
            'es': u'Conversacin acerca de plantilla'
        }
        self.namespaces[13] = {
            'fr': [u'Discussion aide', u'Discussion Aide'],
            'es': u'Conversacin acerca de ayuda',
        }
        self.namespaces[15] = {
            'fr': [u'Discussion catgorie', u'Discussion Catgorie'],
            'es': u'Conversacin acerca de categora'
        }
        self.namespaces[100] = {
            'fr': u'Projet',
            'es': u'Proyecto',
        }
        self.namespaces[101] = {
            'fr': u'Discussion Projet',
            'es': u'Conversacin de proyecto',
        }
        self.namespaces[102] = {
            'fr': u'Portail',
            'es': u'Portal',
        }
        self.namespaces[103] = {
            'fr': u'Discussion Portail',
            'es': u'Conversacin acerca de portal',
        }
        self.namespaces[104] = {
            'fr': u'Quiz',
            'es': u'Quiz',
        }
        self.namespaces[105] = {
            'fr': u'Discussion Quiz',
            'es': u'Conversacin acerca de quiz',
        }

        # Wikimedia wikis all use "bodyContent" as the id of the <div>
        # element that contains the actual page content; change this for
        # wikis that use something else (e.g., mozilla family)
        self.content_id = "bodyContent"

    def scriptpath(self, code):
        """The prefix used to locate scripts on this wiki.

        This is the value displayed when you enter {{SCRIPTPATH}} on a
        wiki page (often displayed at [[Help:Variables]] if the wiki has
        copied the master help page correctly).

        The default value is the one used on Wikimedia Foundation wikis,
        but needs to be overridden in the family file for any wiki that
        uses a different value.

        """
        return '/wiki'

    # Which version of MediaWiki is used? REQUIRED
    def version(self, code):
        # Replace with the actual version being run on your wiki
        return '1.15.2'

    def code2encoding(self, code):
        """Return the encoding for a specific language wiki"""
        # Most wikis nowadays use UTF-8, but change this if yours uses
        # a different encoding
        return 'utf-8'
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.