https://bugzilla.wikimedia.org/show_bug.cgi?id=65149
Bug ID: 65149 Summary: Use page properties to find if a category is hidden Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: category.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: maarten@mdammers.nl Web browser: --- Mobile Platform: ---
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()
https://bugzilla.wikimedia.org/show_bug.cgi?id=65149
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g Depends on| |48824
https://bugzilla.wikimedia.org/show_bug.cgi?id=65149
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|category.py |General
https://bugzilla.wikimedia.org/show_bug.cgi?id=65149
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW Assignee|Pywikipedia-bugs@lists.wiki |mpaa.wiki@gmail.com |media.org |
--- Comment #1 from Ricordisamoa ricordisamoa@openmailbox.org --- https://gerrit.wikimedia.org/r/157281/
pywikipedia-bugs@lists.wikimedia.org