Author: brosner
Date: Sun Sep 28 16:33:18 2008
New Revision: 102

Modified:
    trunk/notification/models.py

Log:
Conditionally turn off autoescaping for .txt extensions in the format.

Modified: trunk/notification/models.py
==============================================================================
--- trunk/notification/models.py        (original)
+++ trunk/notification/models.py        Sun Sep 28 16:33:18 2008
@@ -216,6 +216,9 @@
      """
      format_templates = {}
      for format in formats:
+        # conditionally turn off autoescaping for .txt extensions in format
+        if format.endswith(".txt"):
+            context.autoescape = False
          name = format.split(".")[0]
          format_templates[name] = render_to_string((
              'notification/%s/%s' % (label, format),

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to