Last modified: 2014-11-03 03:51:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74895, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72895 - generate_family_file.py doesnt add https to the class, despite informing the user the API url is https
generate_family_file.py doesnt add https to the class, despite informing the ...
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized major
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks: pwb-family
  Show dependency treegraph
 
Reported: 2014-11-03 03:50 UTC by John Mark Vandenberg
Modified: 2014-11-03 03:51 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-11-03 03:50:40 UTC
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]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links