[CalendarServer-changes] [8090] CalendarServer/branches/users/glyph/other-html/twext/web2/http.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 13 12:12:08 PDT 2011


Revision: 8090
          http://trac.macosforge.org/projects/calendarserver/changeset/8090
Author:   glyph at apple.com
Date:     2011-09-13 12:12:08 -0700 (Tue, 13 Sep 2011)
Log Message:
-----------
Squash the template for compatibility with the tests.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/other-html/twext/web2/http.py

Modified: CalendarServer/branches/users/glyph/other-html/twext/web2/http.py
===================================================================
--- CalendarServer/branches/users/glyph/other-html/twext/web2/http.py	2011-09-13 19:12:01 UTC (rev 8089)
+++ CalendarServer/branches/users/glyph/other-html/twext/web2/http.py	2011-09-13 19:12:08 UTC (rev 8090)
@@ -144,16 +144,12 @@
     Render the HTML for a L{StatusResponse}
     """
 
-    loader = XMLString("""
-        <html xmlns:t="http://twistedmatrix.com/ns/twisted.web.template/0.1"
-              t:render="response">
-            <head><title><t:slot name="title" /></title></head>
-            <body>
-                <h1><t:slot name="title" /></h1>
-                <p><t:slot name="description" /></p>
-            </body>
-        </html>
-        """)
+    loader = XMLString("""<html
+        xmlns:t="http://twistedmatrix.com/ns/twisted.web.template/0.1"
+        t:render="response"><head><title><t:slot name="title"
+                /></title></head><body><h1><t:slot name="title"
+                /></h1><p><t:slot name="description"
+            /></p></body></html>""")
 
     def __init__(self, title, description):
         super(StatusResponseElement, self).__init__()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110913/667488c9/attachment-0001.html>


More information about the calendarserver-changes mailing list