Last modified: 2014-09-04 02:07:12 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 T67149, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65149 - Use page properties to find if a category is hidden
Use page properties to find if a category is hidden
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized enhancement
: ---
Assigned To: Mpaa
:
Depends on: 48824
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-10 17:55 UTC by Maarten Dammers
Modified: 2014-09-04 02:07 UTC (History)
1 user (show)

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


Attachments

Description Maarten Dammers 2014-05-10 17:55:49 UTC
In page.py the class Category has the following function:

def isHiddenCategory(self):
        """Return True if the category is hidden."""
        # FIXME
        # This should use action=query&list=allcategories
        # setting acfrom and acto to the category title and adding
        # acprop=hidden but currently fails  in some cases
        # (see bug 48824)
        return '__HIDDENCAT__' in self.expand_text()


It should probably just get the page property from properties()
Comment 1 Ricordisamoa 2014-09-02 00:31:21 UTC
https://gerrit.wikimedia.org/r/157281/
Comment 2 Ricordisamoa 2014-09-04 02:07:12 UTC
https://gerrit.wikimedia.org/r/157281/ has been merged.

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


Navigation
Links