示例#1
0
def getLabelText(caption):
    ''' Return the text to label the figures removing
        spaces and strange chars from the input.'''
    retval= caption
    retval= retval.replace('+','pos').replace('-','neg')
    retval= su.slugify(retval)
    return retval
示例#2
0
 def getFileName(self):
     return su.slugify(self.partLabel + self.limitStateLabel +
                       self.attributeName)
示例#3
0
 def getShortName(self):
     return su.slugify(self.partName)