Пример #1
0
 def _htmlrepl(self, M):
     repl = self.get_replacements(escapewith=writers.html)
     # special: replace doublequote only for the URL.
     repl['url'] = writers.html(self.url.replace('"', "%22"))
     repl['url_readable'] = writers.html(self.url)
     repl['link'] = self.logURL(M)
     return repl
Пример #2
0
 def _htmlrepl(self, M):
     repl = self.get_replacements(M, escapewith=writers.html)
     # special: replace doublequote only for the URL.
     repl['url'] = writers.html(self.url.replace('"', "%22"))
     repl['url_readable'] = writers.html(self.url)
     repl['link'] = self.logURL(M)
     return repl
Пример #3
0
 def __init__(self, nick, line, linenum, time_):
     self.nick = nick
     self.linenum = linenum
     self.time = time.strftime("%H:%M:%S", time_)
     self.url, self.line = (line + ' ').split(' ', 1)
     # URL-sanitization
     self.url_readable = self.url  # readable line version
     self.url = self.url.replace('"', "%22")
     # readable line satitization:
     self.line = writers.html(self.line.strip())
Пример #4
0
 def _htmlrepl(self, M):
     repl = self.get_replacements(escapewith=writers.html)
     repl['url'] = writers.html(self.url)
     repl['url_readable'] = writers.html(self.url)
     repl['link'] = self.logURL(M)
     return repl