From 311134130441cafe8b69c94868dc317f2bdd45ff Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Dec 01 2017 01:47:19 +0000 Subject: [PATCH 1/2] handle meeting names with unicode in the name --- diff --git a/meeting.py b/meeting.py index 68e964b..f06c8fb 100644 --- a/meeting.py +++ b/meeting.py @@ -34,6 +34,8 @@ import os import re import stat +from kitchen.text.converters import to_bytes + import writers import items reload(writers) @@ -148,8 +150,8 @@ class Config(object): meetingname = self.M._meetingname.replace('/', '') else: meetingname = channel - path = pattern%locals() - path = time.strftime(path, self.M.starttime) + path = pattern % locals() + path = time.strftime(to_bytes(path), self.M.starttime) # If we want the URL name, append URL prefix and return if url: return os.path.join(self.logUrlPrefix, path) @@ -408,7 +410,7 @@ class MeetingCommands(object): commands = [ "#"+x[3:] for x in dir(self) if x[:3]=="do_" ] commands.sort() self.reply("Available commands: "+(" ".join(commands))) - + class Meeting(MeetingCommands, object): From 852193b9ffc295590f45a2d4031a6d3098204140 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Dec 01 2017 18:27:37 +0000 Subject: [PATCH 2/2] show what undo undid --- diff --git a/items.py b/items.py index 7bc1869..4d06d64 100644 --- a/items.py +++ b/items.py @@ -170,6 +170,8 @@ class GenericItem(_BaseItem): repl = self.get_replacements(escapewith=writers.text) repl['link'] = self.logURL(M) return self.text_template%repl + def __str__(self): + return "%s by %s at %s : %s" % (self.itemtype, self.nick, self.time, self.line) class Info(GenericItem):