[16x16 commit] r15 - in trunk/app: . favicon

2 views
Skip to first unread message

codesite...@google.com

unread,
May 23, 2008, 1:14:20 AM5/23/08
to 16x16-...@googlegroups.com
Author: alexpolvi
Date: Thu May 22 22:14:06 2008
New Revision: 15

Modified:
trunk/app/favicon/views.py
trunk/app/index.yaml

Log:
encoded image urls appropriately

Modified: trunk/app/favicon/views.py
==============================================================================
--- trunk/app/favicon/views.py (original)
+++ trunk/app/favicon/views.py Thu May 22 22:14:06 2008
@@ -8,6 +8,7 @@
from django import shortcuts

from datetime import datetime
+from urllib import quote

from favicon.models import Favicon, FaviconURI, Client, Access,
CountStat, DateCountStat
from favicon.helpers import *
@@ -126,7 +127,7 @@
params['next_url'] = datetime_url(dt)
return shortcuts.render_to_response('api.html', params)

- keys = [ f.key().id_or_name().replace('\r', ' ') for f in favicons ]
+ keys = [ quote(f.key().id_or_name()) for f in favicons ]
next_url = datetime_url(favicons[-1].created_at)

params['favicons'] = keys

Modified: trunk/app/index.yaml
==============================================================================
--- trunk/app/index.yaml (original)
+++ trunk/app/index.yaml Thu May 22 22:14:06 2008
@@ -35,7 +35,7 @@
- name: accesses
direction: desc

-# Used 424 times in query history.
+# Used 2 times in query history.
- kind: Favicon
properties:
- name: active

Reply all
Reply to author
Forward
0 new messages