Revision: 7032 Author: alexsh Date: 2009-07-08 03:18:37 +0000 (Wed, 08 Jul 2009)
Log Message: ----------- *remove config.available_ssl_project (not necessary now)
Modified Paths: -------------- trunk/pywikipedia/config.py trunk/pywikipedia/family.py
Modified: trunk/pywikipedia/config.py =================================================================== --- trunk/pywikipedia/config.py 2009-07-08 03:17:09 UTC (rev 7031) +++ trunk/pywikipedia/config.py 2009-07-08 03:18:37 UTC (rev 7032) @@ -66,12 +66,6 @@
# Security Connection for Wikimedia Projects SSL_connection = False - -# Available security projects -available_ssl_project = [ - u'wikipedia',u'wikinews',u'wikisource',u'wiktionary',u'wikibooks',u'wikiquote',u'wikiversity', - u'meta',u'mediawiki',u'commons',u'species',u'incubator' -]
# password_file = ".passwd" # A password file with default passwords. For more information, please
Modified: trunk/pywikipedia/family.py =================================================================== --- trunk/pywikipedia/family.py 2009-07-08 03:17:09 UTC (rev 7031) +++ trunk/pywikipedia/family.py 2009-07-08 03:18:37 UTC (rev 7032) @@ -3525,7 +3525,7 @@ Can be overridden to return 'https'. Other protocols are not supported. """ - if config.SSL_connection and self.name in config.available_ssl_project: + if config.SSL_connection: return 'https'
return 'http' @@ -3545,7 +3545,7 @@ uses a different value.
""" - if config.SSL_connection and self.name in config.available_ssl_project: + if config.SSL_connection: return '/%s/%s/w' % (self.name, code)
return '/w' @@ -3560,7 +3560,7 @@ return '%s/api.php' % self.scriptpath(code)
def nicepath(self, code): - if config.SSL_connection and self.name in config.available_ssl_project: + if config.SSL_connection: return '/%s/%s/wiki/' % (self.name, code)
return '/wiki/'
pywikipedia-svn@lists.wikimedia.org