[Pywikipedia-l] SVN: [5758] trunk/pywikipedia/families/wikipedia_family.py

nicdumz at svn.wikimedia.org nicdumz at svn.wikimedia.org
Fri Jul 25 08:43:25 UTC 2008


Revision: 5758
Author:   nicdumz
Date:     2008-07-25 08:43:25 +0000 (Fri, 25 Jul 2008)

Log Message:
-----------
Crossnamespace fix ; Thanks Stig :)

Modified Paths:
--------------
    trunk/pywikipedia/families/wikipedia_family.py

Modified: trunk/pywikipedia/families/wikipedia_family.py
===================================================================
--- trunk/pywikipedia/families/wikipedia_family.py	2008-07-24 19:52:06 UTC (rev 5757)
+++ trunk/pywikipedia/families/wikipedia_family.py	2008-07-25 08:43:25 UTC (rev 5758)
@@ -861,7 +861,6 @@
             'pt': {
                 '_default': [0],
                 'als': [0, 104], 
-                'en': [0, 12],
                 'es': [0, 104], 
                 'fr': [0, 104], 
                 'lt': [0, 104]
@@ -872,7 +871,6 @@
                 '_default': [1],
                 'als': [1, 105],
                 'es': [1, 105],
-                'en': [1, 13],
                 'fr': [1, 105],
                 'lt': [1, 105]
             }
@@ -882,10 +880,6 @@
                 '_default': [0],
                 'pt': [0, 102]
             },
-            'en': {
-                '_default': [0],
-                'pt': [0, 102]
-            },
             'es': { 
                 '_default': [0],
                 'pt': [0, 102]
@@ -904,10 +898,6 @@
                 '_default': [1],
                 'pt': [0, 103]
             },
-            'en': {
-                '_default': [1],
-                'pt': [0, 103]
-            },
             'es': {
                 '_default': [1],
                 'pt': [0, 103]
@@ -921,6 +911,16 @@
                 'pt': [0, 103]
             }
         }
+        self.crossnamespace[12] = {
+            'en': {
+                '_default': [0],
+            }
+        }
+        self.crossnamespace[13] = {
+            'en': {
+                '_default': [0],
+            }
+        }
     def get_known_families(self, site):
         # In Swedish Wikipedia 's:' is part of page title not a family
         # prefix for 'wikisource'.





More information about the Pywikipedia-l mailing list