[extensions-web] Add images to the BINARY_TYPES set
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Add images to the BINARY_TYPES set
- Date: Mon, 30 Jan 2012 23:12:33 +0000 (UTC)
commit f3458fd75e056593694818895875f0756e3ec64f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Jan 30 14:52:47 2012 -0500
Add images to the BINARY_TYPES set
sweettooth/review/views.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index a5467ca..1bda386 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -35,7 +35,7 @@ IMAGE_TYPES = {
'.svg': 'image/svg+xml',
}
-BINARY_TYPES = set(['.mo'])
+BINARY_TYPES = set(['.mo', '.png', ',jpg', '.jpeg', '.gif', '.bmp'])
code_formatter = pygments.formatters.HtmlFormatter(style="borland", cssclass="code")
diff_formatter = NoWrapperHtmlFormatter(style="borland")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]