Last modified: 2014-07-23 15:06:29 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 T57095, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55095 - Change imagerecat.py to use lists in family file
Change imagerecat.py to use lists in family file
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:22 UTC by Kunal Mehta (Legoktm)
Modified: 2014-07-23 15:06 UTC (History)
2 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:22:48 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/177/
Reported by: multichill
Created on: 2009-02-13 13:26:33
Subject: Change imagerecat.py to use lists in family file
Assigned to: multichill
Original description:
Imagerecat.py has to be changed to use the redirect template list and the disambigutation template list in the Commons family file:

self.category\_redirect\_templates = \{
'commons': \(u'Category redirect',
u'Categoryredirect',
u'See cat',
u'Seecat',
u'Catredirect',
u'Cat redirect',
u'CatRed',
u'Cat-red',
u'Catredir',
u'Redirect category'\),
\}

self.disambiguationTemplates = \{
'commons': \[u'Disambig', u'Disambiguation', u'Razločitev',
u'Begriffsklärung'\]
\}
Comment 1 Ricordisamoa 2014-07-23 15:06:29 UTC
https://www.mediawiki.org/wiki/Special:Code/pywikipedia/5817#28 already used Page.isDisambig(), but searched the page templates for 'Category redirect' or 'Seecat'.
https://www.mediawiki.org/wiki/Special:Code/pywikipedia/8530#254 introduced Page.isCategoryRedirect(), that uses site.category_redirects().

Both changes were already in place when the script was ported to core in 2013.

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


Navigation
Links