# - - - E f f o r t K e y . _ _ s t r _ _ def __str__(self): '''Render self as a string. '''
The intent of this method is to render the effort key in a human-friendly form. There are two different formats:
In effort keys through year number 90, the year keys are
four-digit numbers with left zeroes, occasionally followed
by a letter. Examples:
For this form, we strip the leading zeroes from each part,
separate them with a hyphen, and suppress trailing
whitespace. For the examples shown, this method
Year keys 91 and up are four-letter codes followed by one
We strip the leading zero from the year number and add a
hyphen separator, and also suppress the trailing space.
For the example, we would return
#-- 1 return ('%s-%s' % (self.year_no.lstrip('0'), self.year_key.lstrip('0').rstrip()))