diff options
author | Tryggvi Bjorgvinsson <tryggvib@fsfi.is> | 2014-02-28 23:25:02 +0000 |
---|---|---|
committer | Jessica Tallon <jessica@megworld.co.uk> | 2014-07-18 15:27:35 +0100 |
commit | 09bed9a7328c806873405bd2ec5a5cf72930e89c (patch) | |
tree | 128b92334716663eb229f6f680f2a08326dd1648 /mediagoblin/db/mixin.py | |
parent | 8c311def96a8e68afeedeb43b38ee019788ca542 (diff) | |
download | mediagoblin-09bed9a7328c806873405bd2ec5a5cf72930e89c.tar.lz mediagoblin-09bed9a7328c806873405bd2ec5a5cf72930e89c.tar.xz mediagoblin-09bed9a7328c806873405bd2ec5a5cf72930e89c.zip |
Use unicode for logging comments
The comment problems detailed in issue 791 are related to logging
of comments creation. The log tries to format unicode comments into
an ascii string (that is the unicode comment content).
This also creates problems with mark seen functionality since that
also logs the comments which breaks and you end up with a lot of
international comments in your message queue.
This commit makes both log messages unicode as well as the
representation of the comment.
Diffstat (limited to 'mediagoblin/db/mixin.py')
-rw-r--r-- | mediagoblin/db/mixin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/mixin.py b/mediagoblin/db/mixin.py index 048cc07c..3d96ba34 100644 --- a/mediagoblin/db/mixin.py +++ b/mediagoblin/db/mixin.py @@ -295,7 +295,7 @@ class MediaCommentMixin(object): return cleaned_markdown_conversion(self.content) def __repr__(self): - return '<{klass} #{id} {author} "{comment}">'.format( + return u'<{klass} #{id} {author} "{comment}">'.format( klass=self.__class__.__name__, id=self.id, author=self.get_author, |