gentoo_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 » gentoo_family.py
# -*- coding: utf-8  -*-

import urllib
import family, config

__version__ = '$Id: gentoo_family.py 7008 2009-07-01 06:14:26Z alexsh $'

# An inofficial Gentoo wiki project.
# Ask for permission at http://gentoo-wiki.com/Help:Bots before running a bot.
# Be very careful, and set a long throttle: "until we see it is good one edit
# ever minute and one page fetch every 30 seconds, maybe a *bit* faster later".

class Family(family.Family):

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

        self.languages_by_size = ['en', 'de', 'es', 'fr', 'cs', 'nl', 'tr', 'ru', 'fi']
        for l in self.languages_by_size:
            self.langs[l] = '%s.gentoo-wiki.com' % l

        # TODO: sort


        # he: also uses the default 'Media'

        self.namespaces[4] = {
            '_default': u'Gentoo Linux Wiki',
        }
        self.namespaces[5] = {
            '_default': u'Gentoo Linux Wiki talk',
            'cs': u'Gentoo Linux Wiki diskuse',
            'de': u'Gentoo Linux Wiki Diskussion',
            'es': u'Gentoo Linux Wiki Discusin',
            'fi': u'Keskustelu Gentoo Linux Wikist',
            'fr': u'Discussion Gentoo Linux Wiki',
            'nl': u'Overleg Gentoo Linux Wiki',
            'ru': u' Gentoo Linux Wiki',
            'tr': u'Gentoo Linux Wiki tartma',
        }
        self.namespaces[90] = {
            '_default': u'Thread',
        }
        self.namespaces[91] = {
            '_default': u'Thread talk',
        }
        self.namespaces[92] = {
            '_default': u'Summary',
        }
        self.namespaces[93] = {
            '_default': u'Summary talk',
        }
        self.namespaces[100] = {
            '_default': u'Index',
            'tr': u'Icerik',
        }
        self.namespaces[101] = {
            '_default': u'Index Talk',
            'tr': u'Icerik Talk',
        }
        self.namespaces[102] = {
            '_default': u'Ebuild',
        }
        self.namespaces[103] = {
            '_default': u'Ebuild Talk',
        }
        self.namespaces[104] = {
            '_default': u'News',
            'tr': u'Haberler',
        }
        self.namespaces[105] = {
            '_default': u'News Talk',
            'tr': u'Haberler Talk',
        }
        self.namespaces[106] = {
            '_default': u'Man',
        }
        self.namespaces[107] = {
            '_default': u'Man Talk',
        }
        self.namespaces[110] = {
            '_default': u'Ucpt',
        }
        self.namespaces[111] = {
            '_default': u'Ucpt talk',
        }

        self.known_families.pop('gentoo-wiki')

    def version(self, code):
        return "1.16alpha"
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.