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()
def generateName(self, title, shortDescription=""): return keyword.generateName(title, shortDescription)