Page MenuHomePhabricator

generate_family_file.py doesn't add https to the class, despite informing the user the API url is https
Closed, ResolvedPublic

Description

generate_family_file.py does not add support for https

$ python ./generate_family_file.py https://wikiapiary.com/wiki/Main_Page wikiapiary
Generating family file from https://wikiapiary.com/wiki/Main_Page

==================================
api url: https://wikiapiary.com/w/api.php
MediaWiki version: 1.23.6
==================================

Determining other languages...
Loading wikis... 
  * en... in cache
Writing pywikibot/families/wikiapiary_family.py... 


$ cat pywikibot/families/wikiapiary_family.py
# -*- coding: utf-8 -*-
"""
This family file was auto-generated by $Id: 185033971c163ea46b2b1904773b8c407069a4d0 $
Configuration parameters:
  url = https://wikiapiary.com/wiki/Main_Page
  name = wikiapiary

Please do not commit this to the Git repository!
"""

from pywikibot import family

class Family(family.Family):
    def __init__(self):
        family.Family.__init__(self)
        self.name = 'wikiapiary'
        self.langs = {
            'en': 'wikiapiary.com',
        }



    def scriptpath(self, code):
        return {
            'en': '/w',
        }[code]

    def version(self, code):
        return {
            'en': u'1.23.6',
        }[code]

Details

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:58 AM
bzimport set Reference to bz72895.
bzimport added a subscriber: Unknown Object (????).

Change 229115 had a related patch set uploaded (by VcamX):
Detect protocol of site for family file

https://gerrit.wikimedia.org/r/229115

jayvdb set Security to None.

Change 229115 merged by jenkins-bot:
Detect protocol of site for family file

https://gerrit.wikimedia.org/r/229115

Ricordisamoa renamed this task from generate_family_file.py doesnt add https to the class, despite informing the user the API url is https to generate_family_file.py doesn't add https to the class, despite informing the user the API url is https.Aug 8 2015, 10:03 PM
Ricordisamoa removed a project: Patch-For-Review.
Ricordisamoa removed a subscriber: gerritbot.
Ricordisamoa subscribed.