https://bugzilla.wikimedia.org/show_bug.cgi?id=72847

            Bug ID: 72847
           Summary: fileIsShared only works with Wikimedia and Wikitravel
                    shared repository
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: network
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

Setting up a shared_image_repository for a family requires adding logic to
page.fileIsShared, which is currently:

        if not self.site.has_image_repository:
            return False
        elif 'wikitravel_shared' in self.site.shared_image_repository():
            return self.fileUrl().startswith(
                u'http://wikitravel.org/upload/shared/')
        else:
            return self.fileUrl().startswith(
                'https://upload.wikimedia.org/wikipedia/commons/')

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to