Last modified: 2014-11-09 19:08:39 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 T74847, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72847 - fileIsShared only works with Wikimedia and Wikitravel shared repository
fileIsShared only works with Wikimedia and Wikitravel shared repository
Status: NEW
Product: Pywikibot
Classification: Unclassified
network (Other open bugs)
All All
: Unprioritized major
: ---
Assigned To: Pywikipedia bugs
Depends on:
Blocks: pwb20
  Show dependency treegraph
Reported: 2014-11-01 05:17 UTC by John Mark Vandenberg
Modified: 2014-11-09 19:08 UTC (History)
1 user (show)

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


Description John Mark Vandenberg 2014-11-01 05:17:20 UTC
Setting up a shared_image_repository for a family requires adding logic to page.fileIsShared, which is currently:

        if not
            return False
        elif 'wikitravel_shared' in
            return self.fileUrl().startswith(
            return self.fileUrl().startswith(
Comment 1 John Mark Vandenberg 2014-11-09 19:08:39 UTC
Site should use meta=filerepoinfo|rootUrl|local|rootUrl|local

The apiurl appears to no longer be in the returned data, and the rootUrl is not very helpful if we want to determine where the front end processor is for the shared repo.

But we can get the base URL of the images, which covers most of the needs of FilePage.|rootUrl|local|apiURL

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