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()