http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11009
Revision: 11009 Author: xqt Date: 2013-01-27 14:45:08 +0000 (Sun, 27 Jan 2013) Log Message: ----------- default protocol from family file
Modified Paths: -------------- trunk/pywikipedia/families/commons_family.py trunk/pywikipedia/families/incubator_family.py trunk/pywikipedia/families/mediawiki_family.py trunk/pywikipedia/families/meta_family.py trunk/pywikipedia/families/species_family.py trunk/pywikipedia/families/strategy_family.py trunk/pywikipedia/families/test_family.py trunk/pywikipedia/families/wikibooks_family.py trunk/pywikipedia/families/wikidata_family.py trunk/pywikipedia/families/wikinews_family.py trunk/pywikipedia/families/wikipedia_family.py trunk/pywikipedia/families/wikiquote_family.py trunk/pywikipedia/families/wikisource_family.py trunk/pywikipedia/families/wikiversity_family.py trunk/pywikipedia/families/wikivoyage_family.py trunk/pywikipedia/families/wiktionary_family.py
Modified: trunk/pywikipedia/families/commons_family.py =================================================================== --- trunk/pywikipedia/families/commons_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/commons_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -72,8 +72,3 @@
def dbName(self, code): return 'commonswiki_p' - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/incubator_family.py =================================================================== --- trunk/pywikipedia/families/incubator_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/incubator_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -32,8 +32,3 @@ '_default': u'Translations talk', } self.interwiki_forward = 'wikipedia' - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/mediawiki_family.py =================================================================== --- trunk/pywikipedia/families/mediawiki_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/mediawiki_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -76,8 +76,3 @@ self.namespaces[2501] = { '_default': u'VisualEditor talk', } - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/meta_family.py =================================================================== --- trunk/pywikipedia/families/meta_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/meta_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -150,8 +150,3 @@
self.interwiki_forward = 'wikipedia' self.cross_allowed = ['meta',] - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/species_family.py =================================================================== --- trunk/pywikipedia/families/species_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/species_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -22,8 +22,3 @@ }
self.interwiki_forward = 'wikipedia' - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/strategy_family.py =================================================================== --- trunk/pywikipedia/families/strategy_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/strategy_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -31,8 +31,3 @@
def dbName(self, code): return 'strategywiki_p' - - if config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/test_family.py =================================================================== --- trunk/pywikipedia/families/test_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/test_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -157,7 +157,3 @@ '_default': u'VisualEditor talk', } self.interwiki_forward = 'wikipedia' - - if family.config.SSL_connection: - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/wikibooks_family.py =================================================================== --- trunk/pywikipedia/families/wikibooks_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/wikibooks_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -481,8 +481,3 @@ 'zh-cn': 'zh', 'zu': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=25425 } - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/wikidata_family.py =================================================================== --- trunk/pywikipedia/families/wikidata_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/wikidata_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -51,10 +51,6 @@ '_default': u'Translations talk', }
- if family.config.SSL_connection: - def protocol(self, code): - return 'https' - def shared_data_repository(self, code, transcluded=False): """Always return a repository tupe. This enables testing whether the site opject is the repository itself, see Site.is_data_repository()
Modified: trunk/pywikipedia/families/wikinews_family.py =================================================================== --- trunk/pywikipedia/families/wikinews_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/wikinews_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -257,8 +257,3 @@ 'zh-tw': 'zh', 'zh-cn': 'zh' } - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/wikipedia_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -1537,8 +1537,3 @@ return ('wikidata', 'wikidata') else: return (None, None) - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/wikiquote_family.py =================================================================== --- trunk/pywikipedia/families/wikiquote_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/wikiquote_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -330,8 +330,3 @@ if code == 'ru': return 'utf-8', 'iso8859-5' return self.code2encoding(code), - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/wikisource_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -635,8 +635,3 @@ self.crossnamespace[106] = { 'sv': self.authornamespaces, } - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/wikiversity_family.py =================================================================== --- trunk/pywikipedia/families/wikiversity_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/wikiversity_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -142,8 +142,3 @@
# Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... self.cross_allowed = ['ja',] - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/wikivoyage_family.py =================================================================== --- trunk/pywikipedia/families/wikivoyage_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/wikivoyage_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -80,8 +80,3 @@ 'de': u'Nachrichten Diskussion', 'it': u'Discussioni notizie', } - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2013-01-27 14:40:33 UTC (rev 11008) +++ trunk/pywikipedia/families/wiktionary_family.py 2013-01-27 14:45:08 UTC (rev 11009) @@ -674,8 +674,3 @@ self.interwiki_on_one_line = ['pl']
self.interwiki_attop = ['pl'] - - if family.config.SSL_connection: - - def protocol(self, code): - return 'https'
pywikipedia-svn@lists.wikimedia.org