Author: jvloothuis
Date: Thu Mar 1 23:25:01 2007
New Revision: 39646
Modified:
kukit/kss.core/trunk/kss/core/azaxview.py
Log:
Fixed a problem with KSS in Plone that caused all KSS calls to break. This was
due to an improper response header.
Modified: kukit/kss.core/trunk/kss/core/azaxview.py
==============================================================================
--- kukit/kss.core/trunk/kss/core/azaxview.py (original)
+++ kukit/kss.core/trunk/kss/core/azaxview.py Thu Mar 1 23:25:01 2007
@@ -134,6 +134,10 @@
def render(self):
"""Views can use this to return their command set."""
+ # Always output text/xml to make sure browsers but the data in the
+ # responseXML instead of responseText attribute of the
+ # XMLHttpRequestobject.
+ self.request.RESPONSE.setHeader('Content-type', 'text/xml')
return self.commands.render(self.request)
def cancelRedirect(self):
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins