コード例 #1
0
 def at_post_create_script(self):
     name = self.getName()
     if not name or name == self.getId():
         name = keyword.generateName(self.Title(), self.getShortAdditionalDescription())
     ctool = getToolByName(self, 'portal_classification')
     ctool.addKeyword(name, self.Title(), self.getKwDescription(), self.getShortAdditionalDescription(), self.getId())
     self.updateKwMap()
コード例 #2
0
 def generateName(self, title, shortDescription=""):
     return keyword.generateName(title, shortDescription)