[Pywikipedia-svn] SVN: [7197] trunk/pywikipedia/families/strategy_family.py

multichill at svn.wikimedia.org multichill at svn.wikimedia.org
Wed Sep 2 18:08:23 UTC 2009


Revision: 7197
Author:   multichill
Date:     2009-09-02 18:08:23 +0000 (Wed, 02 Sep 2009)

Log Message:
-----------
Family file for Wikimedia strategy wiki.
File based on the Commons family file and altered by [MarkW].

Added Paths:
-----------
    trunk/pywikipedia/families/strategy_family.py

Copied: trunk/pywikipedia/families/strategy_family.py (from rev 7187, trunk/pywikipedia/families/commons_family.py)
===================================================================
--- trunk/pywikipedia/families/strategy_family.py	                        (rev 0)
+++ trunk/pywikipedia/families/strategy_family.py	2009-09-02 18:08:23 UTC (rev 7197)
@@ -0,0 +1,76 @@
+# -*- coding: utf-8  -*-
+
+__version__ = '$Id$'
+
+import family, config
+
+# The Wikimedia Strategy family
+
+class Family(family.Family):
+    def __init__(self):
+        family.Family.__init__(self)
+        self.name = 'strategy'
+        self.langs = {
+            'strategy': 'strategy.wikimedia.org',
+        }
+        if config.SSL_connection:
+            self.langs['commons'] = None
+
+        self.namespaces[4] = {
+            '_default': [u'Strategic Planning', 'Project'],
+        }
+        self.namespaces[5] = {
+            '_default': [u'Strategic Planning talk', 'Project talk'],
+        }
+        self.namespaces[100] = {
+            '_default': [u'Creator', 'Project'],
+        }
+        self.namespaces[101] = {
+            '_default': [u'Creator talk', 'Project talk'],
+        }
+
+        self.interwiki_forward = 'wikipedia'
+
+        self.category_redirect_templates = {
+            'commons': (u'Category redirect',
+                        u'Categoryredirect',
+                        u'See cat',
+                        u'Seecat',
+                        u'Catredirect',
+                        u'Cat redirect',
+                        u'CatRed',
+                        u'Cat-red',
+                        u'Catredir',
+                        u'Redirect category'),
+        }
+        
+        self.disambiguationTemplates = {
+            'commons': [u'Disambig', u'Disambiguation', u'Razločitev',
+                        u'Begriffsklärung']
+        }
+        
+        self.disambcatname = {
+            'commons':  u'Disambiguation'
+        }
+
+    def version(self, code):
+        return '1.16alpha-wmf'
+
+    def dbName(self, code):
+        return 'strategywiki_p'
+
+    def shared_image_repository(self, code):
+        return ('commons', 'commons')
+
+    if config.SSL_connection:
+        def hostname(self, code):
+            return 'secure.wikimedia.org'
+
+        def protocol(self, code):
+            return 'https'
+
+        def scriptpath(self, code):
+            return '/wikipedia/strategy/w'
+
+        def nicepath(self, code):
+            return '/wikipedia/strategy/wiki/'





More information about the Pywikipedia-svn mailing list