Beispiel #1
0
    def getNewCategories(self, imagepage):
        """Get categories for the image.

        Don't forget to filter.
        """
        result = ''
        (commonshelperCats, usage,
         galleries) = imagerecat.getCommonshelperCats(imagepage)
        newcats = imagerecat.applyAllFilters(commonshelperCats)
        for newcat in newcats:
            result += '[[Category:{}]] '.format(newcat)
        return result
    def getNewCategories(self, imagepage):
        """Get categories for the image.

        Don't forget to filter.

        """
        result = u''
        (commonshelperCats, usage,
         galleries) = imagerecat.getCommonshelperCats(imagepage)
        newcats = imagerecat.applyAllFilters(commonshelperCats)
        for newcat in newcats:
            result += u'[[Category:' + newcat + u']] '
        return result