[damned-lies] Don't escape diff content in freeze notification message
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Don't escape diff content in freeze notification message
- Date: Tue, 13 Mar 2012 15:36:14 +0000 (UTC)
commit d4d5ba6b30daa4cced5edc9dac6c83fa2d54c3ae
Author: Claude Paroz <claude 2xlibre net>
Date: Tue Mar 13 16:36:04 2012 +0100
Don't escape diff content in freeze notification message
stats/tests/__init__.py | 2 +-
templates/freeze-notification.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/stats/tests/__init__.py b/stats/tests/__init__.py
index 82d162e..979332c 100644
--- a/stats/tests/__init__.py
+++ b/stats/tests/__init__.py
@@ -154,7 +154,7 @@ class ModuleTestCase(TestCase):
# Assertions
self.assertEqual(len(mail.outbox), 1);
self.assertEqual(mail.outbox[0].subject, "String additions to 'gnome-hello.master'")
- self.assertTrue(mail.outbox[0].message().as_string().find(new_string)>-1)
+ self.assertIn('"%s"' % new_string, mail.outbox[0].body)
def test_read_file_variable(self):
from stats.utils import search_variable_in_file
diff --git a/templates/freeze-notification.txt b/templates/freeze-notification.txt
index f97f6f7..41260f7 100644
--- a/templates/freeze-notification.txt
+++ b/templates/freeze-notification.txt
@@ -3,7 +3,7 @@ http://{{ ourweb }}.
There have been following string additions to module '{{ module }}':
-{{ potdiff }}
+{{ potdiff|safe }}
Note that this doesn't directly indicate a string freeze break, but it
might be worth investigating.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]