1.1 --- a/README.txt Sun Oct 12 19:47:09 2008 +0200
1.2 +++ b/README.txt Sat Oct 25 22:37:00 2008 +0200
1.3 @@ -72,6 +72,9 @@
1.4 * Added XInclude support in templates (requires libxml2dom 0.4.6 or later).
1.5 * Removed PyQt support since the advantages of designing user interfaces for
1.6 the Web using Qt Designer are questionable.
1.7 + * Removed default encoding and path_encoding attributes from the
1.8 + XSLFormsResource class, since the default response encoding should be used
1.9 + instead or set using WebStack's EncodingSelector.
1.10
1.11 New in XSLTools 0.5 (Changes since XSLTools 0.4.6)
1.12 --------------------------------------------------
2.1 --- a/XSLForms/Resources/WebResources.py Sun Oct 12 19:47:09 2008 +0200
2.2 +++ b/XSLForms/Resources/WebResources.py Sat Oct 25 22:37:00 2008 +0200
2.3 @@ -104,8 +104,9 @@
2.4 not be overridden)
2.5 """
2.6
2.7 - path_encoding = "utf-8"
2.8 - encoding = "utf-8"
2.9 + #path_encoding = "utf-8"
2.10 + #encoding = "utf-8"
2.11 +
2.12 template_resources = {}
2.13 in_page_resources = {}
2.14 init_resources = {}
2.15 @@ -432,7 +433,13 @@
2.16
2.17 # Start the response.
2.18
2.19 - encoding = attributes.get("encoding") or self.encoding or trans.default_charset
2.20 + if attributes.has_key("encoding"):
2.21 + encoding = attributes["encoding"] # NOTE: Potentially redundant.
2.22 + elif hasattr(self, "encoding"):
2.23 + encoding = self.encoding
2.24 + else:
2.25 + encoding = trans.default_charset
2.26 +
2.27 content_type = content_type or WebStack.Generic.ContentType("application/xhtml+xml", encoding)
2.28 trans.set_content_type(content_type)
2.29