http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10229
Revision: 10229 Author: xqt Date: 2012-05-20 13:21:59 +0000 (Sun, 20 May 2012) Log Message: ----------- list comprehensions from trunk
Modified Paths: -------------- branches/rewrite/pywikibot/families/wikibooks_family.py branches/rewrite/pywikibot/families/wikinews_family.py branches/rewrite/pywikibot/families/wikipedia_family.py branches/rewrite/pywikibot/families/wikiquote_family.py branches/rewrite/pywikibot/families/wikiversity_family.py branches/rewrite/pywikibot/families/wiktionary_family.py
Modified: branches/rewrite/pywikibot/families/wikibooks_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikibooks_family.py 2012-05-20 13:05:33 UTC (rev 10228) +++ branches/rewrite/pywikibot/families/wikibooks_family.py 2012-05-20 13:21:59 UTC (rev 10229) @@ -21,8 +21,8 @@ 'ast', 'ku', 'tk', 'uz', 'su', 'vo', 'mn', 'my', ]
- for lang in self.languages_by_size: - self.langs[lang] = '%s.wikibooks.org' % lang + self.langs = dict([(lang, '%s.wikibooks.org' % lang) for lang in self.languages_by_size]) + # CentralAuth cross avaliable projects. self.cross_projects = [ 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews',
Modified: branches/rewrite/pywikibot/families/wikinews_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikinews_family.py 2012-05-20 13:05:33 UTC (rev 10228) +++ branches/rewrite/pywikibot/families/wikinews_family.py 2012-05-20 13:21:59 UTC (rev 10229) @@ -16,9 +16,9 @@ 'tr', 'sd', 'sq', 'uk', 'no', 'bs', 'eo', 'ko', ]
- for lang in self.languages_by_size: - self.langs[lang] = '%s.wikinews.org' % lang + self.langs = dict([(lang, '%s.wikinews.org' % lang) for lang in self.languages_by_size])
+ # CentralAuth cross avaliable projects. self.cross_projects = [ 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews',
Modified: branches/rewrite/pywikibot/families/wikipedia_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikipedia_family.py 2012-05-20 13:05:33 UTC (rev 10228) +++ branches/rewrite/pywikibot/families/wikipedia_family.py 2012-05-20 13:21:59 UTC (rev 10229) @@ -41,9 +41,9 @@ 'ch', 'ff', 'ny', 'xh', 'tw', ]
- for lang in self.languages_by_size: - self.langs[lang] = '%s.wikipedia.org' % lang + self.langs = dict([(lang, '%s.wikipedia.org' % lang) for lang in self.languages_by_size])
+ self.category_redirect_templates = { '_default': (), 'ar': (u'تحويل تصنيف',
Modified: branches/rewrite/pywikibot/families/wikiquote_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikiquote_family.py 2012-05-20 13:05:33 UTC (rev 10228) +++ branches/rewrite/pywikibot/families/wikiquote_family.py 2012-05-20 13:21:59 UTC (rev 10229) @@ -20,9 +20,9 @@ 'wo', 'ky', 'co', 'am', ]
- for lang in self.languages_by_size: - self.langs[lang] = '%s.wikiquote.org' % lang + self.langs = dict([(lang, '%s.wikiquote.org' % lang) for lang in self.languages_by_size])
+ self.disambiguationTemplates = { '_default': [], 'fr': ['Homonymie'],
Modified: branches/rewrite/pywikibot/families/wikiversity_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikiversity_family.py 2012-05-20 13:05:33 UTC (rev 10228) +++ branches/rewrite/pywikibot/families/wikiversity_family.py 2012-05-20 13:21:59 UTC (rev 10229) @@ -15,9 +15,9 @@ 'fi', 'sv', 'sl', 'ja', ]
- for lang in self.languages_by_size: - self.langs[lang] = '%s.wikiversity.org' % lang + self.langs = dict([(lang, '%s.wikiversity.org' % lang) for lang in self.languages_by_size])
+ # CentralAuth cross avaliable projects. self.cross_projects = [ 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews',
Modified: branches/rewrite/pywikibot/families/wiktionary_family.py =================================================================== --- branches/rewrite/pywikibot/families/wiktionary_family.py 2012-05-20 13:05:33 UTC (rev 10228) +++ branches/rewrite/pywikibot/families/wiktionary_family.py 2012-05-20 13:21:59 UTC (rev 10229) @@ -27,8 +27,7 @@ 'jbo', 'dv', 'ne', 'ha', 'ks', 'ay', 'ts', 'dz', ]
- for lang in self.languages_by_size: - self.langs[lang] = '%s.wiktionary.org' % lang + self.langs = dict([(lang, '%s.wiktionary.org' % lang) for lang in self.languages_by_size])
# CentralAuth cross avaliable projects.
pywikipedia-svn@lists.wikimedia.org