http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10205
Revision: 10205 Author: shizhao Date: 2012-05-11 16:34:51 +0000 (Fri, 11 May 2012) Log Message: ----------- Commons family change SSL connection: https://commons.wikimedia.org
Modified Paths: -------------- trunk/pywikipedia/families/commons_family.py
Modified: trunk/pywikipedia/families/commons_family.py =================================================================== --- trunk/pywikipedia/families/commons_family.py 2012-05-09 05:20:20 UTC (rev 10204) +++ trunk/pywikipedia/families/commons_family.py 2012-05-11 16:34:51 UTC (rev 10205) @@ -13,8 +13,6 @@ self.langs = { 'commons': 'commons.wikimedia.org', } - if family.config.SSL_connection: - self.langs['commons'] = None
self.namespaces[4] = { '_default': [u'Commons', 'Project'], @@ -85,14 +83,6 @@ return ('commons', 'commons')
if family.config.SSL_connection: - def hostname(self, code): - return 'secure.wikimedia.org'
def protocol(self, code): return 'https' - - def scriptpath(self, code): - return '/wikipedia/commons/w' - - def nicepath(self, code): - return '/wikipedia/commons/wiki/'
pywikipedia-svn@lists.wikimedia.org