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: [email protected]
          Reporter: [email protected]
       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()

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