[snowy] Fix display of notes with unicode links
- From: Sanford Armstrong <sharm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snowy] Fix display of notes with unicode links
- Date: Mon, 20 Dec 2010 11:41:07 +0000 (UTC)
commit 7547f5f902200e527646cbf895b7d752e70391c9
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Sun Dec 19 18:49:16 2010 -0800
Fix display of notes with unicode links
notes/utils.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/notes/utils.py b/notes/utils.py
index d7e31e3..9d2384f 100644
--- a/notes/utils.py
+++ b/notes/utils.py
@@ -30,6 +30,7 @@ def note_to_html(note, author):
# so we keep a little cache to save on lookups
link_cache = {}
def get_url_for_title(dummy, link_text):
+ link_text = unicode(link_text)
if link_text in link_cache:
return link_cache[link_text]
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]