Revision: 8756
Author: purodha
Date: 2010-12-04 10:54:12 +0000 (Sat, 04 Dec 2010)
Log Message:
-----------
Allow to set the source families of forwarded interfamily interlanguage links.
Modified Paths:
--------------
trunk/pywikipedia/family.py
Modified: trunk/pywikipedia/family.py
===================================================================
--- trunk/pywikipedia/family.py 2010-12-03 21:20:20 UTC (rev 8755)
+++ trunk/pywikipedia/family.py 2010-12-04 10:54:12 UTC (rev 8756)
@@ -3441,6 +3441,12 @@
# family.
self.interwiki_forward = None
+ # Some families, e. g. wikipedia, receive forwarded interlanguage
+ # links from other families, e. g. incubator, commons, or meta.
+ # These families can set this variable to the names of their source
+ # families.
+ self.interwiki_forwarded_from = {}
+
# Which language codes no longer exist and by which language code
# should they be replaced. If for example the language with code xx:
# now should get code yy:, add {'xx':'yy'} to obsolete. If all
Show replies by date