def _setId(self): """Set the issue id of this blog post.""" pos = self.uid.find(_idDelimiter) self.name = replaceEscapeSequences(self.uid[:pos].strip()) issuetext = self.uid[pos + 1:] issuetext = issuetext[:len(issuetext) - _yearDigits] issuetext = issuetext.strip(_issueDelimiters) year = self.uid[len(self.uid) - _yearDigits:] #self.issue = lang[lng.txtIssue] + ' ' + issuetext + ' / ' + year self.issue = issuetext + ' / ' + year
def _formattext(self): """Format the texts of this Item.""" self.title = replaceEscapeSequences(self._rawtitle) print('START ' + self.title) try: self._formattedtext = FormattedText(self._rawtext) except: #print('Error: Could not format text, falling back to plain text...') self._formattedtext = None self._strippedtext = filterHtml(self._rawtext) print('FELSLUT ' + self.title) else: print('S**T ' + self.title)