コード例 #1
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
コード例 #2
0
ファイル: imagecopy_self.py プロジェクト: moleculea/ess
 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
コード例 #3
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 += u"[[Category:" + newcat + u"]] "
     return result