[Pywikipedia-l] SVN: [4827] trunk/pywikipedia/families/wikia_family.py

leogregianin at svn.wikimedia.org leogregianin at svn.wikimedia.org
Tue Jan 8 15:46:55 UTC 2008


Revision: 4827
Author:   leogregianin
Date:     2008-01-08 15:46:55 +0000 (Tue, 08 Jan 2008)

Log Message:
-----------
the wikia search family

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

Added: trunk/pywikipedia/families/wikia_family.py
===================================================================
--- trunk/pywikipedia/families/wikia_family.py	                        (rev 0)
+++ trunk/pywikipedia/families/wikia_family.py	2008-01-08 15:46:55 UTC (rev 4827)
@@ -0,0 +1,43 @@
+# -*- coding: utf-8  -*-
+
+__version__ = '$Id:  $'
+
+import family
+
+# The Wikia Search family
+# user-config.py: usernames['wikia']['wikia'] = 'User name'
+
+class Family(family.Family):
+    def __init__(self):
+        family.Family.__init__(self)
+        self.name = u'wikia'
+
+        self.langs = {
+            u'wikia': u'search.wikia.com',
+        }
+
+        self.namespaces[4] = {
+            '_default': [u'search', self.namespaces[4]['_default']],
+        }
+        self.namespaces[5] = {
+            '_default': [u'search talk', self.namespaces[5]['_default']],
+        }
+        self.namespaces[100] = {
+            '_default': u'Forum',
+        }
+        self.namespaces[101] = {
+            '_default': u'Forum talk',
+        }
+        self.namespaces[112] = {
+            '_default': u'Mini',
+        }
+        self.namespaces[113] = {
+            '_default': u'Mini talk',
+        }
+        
+    def code2encoding(self, code):
+        return 'iso-8859-1'
+    
+    def version(self, code):
+        return "1.12alpha"
+    





More information about the Pywikipedia-l mailing list