def getNewCategories(self, imagepage):
     '''
     Get a categories for the image
     Dont forget to filter
     '''
     result = u''
     (commonshelperCats, usage, galleries) = imagerecat.getCommonshelperCats(imagepage)
     newcats = imagerecat.applyAllFilters(commonshelperCats)
     for newcat in newcats:
         result = result + u'[[Category:' + newcat + u']] '
     return result
Example #2
0
 def getNewCategories(self, imagepage):
     '''
     Get a categories for the image
     Dont forget to filter
     '''
     result = u''
     (commonshelperCats, usage, galleries) = imagerecat.getCommonshelperCats(imagepage)
     newcats = imagerecat.applyAllFilters(commonshelperCats)
     for newcat in newcats:
         result = result + u'[[Category:' + newcat + u']] '
     return result
 def getNewCategories(self, imagepage):
     """
     Get a categories for the image
     Dont 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