Author: reebalazs Date: Thu Sep 27 12:09:56 2007 New Revision: 46941 Modified: kukit/kss.core/trunk/kss/core/browser/kukitresponse.pt kukit/kss.core/trunk/kss/core/tests/test_kssview_core.py Log: Remove the <html...> wrapping from the kukit commands payload. Since we use CDATA for the html parts now, the wrapping hack is not needed any more.
Modified: kukit/kss.core/trunk/kss/core/browser/kukitresponse.pt ============================================================================== --- kukit/kss.core/trunk/kss/core/browser/kukitresponse.pt (original) +++ kukit/kss.core/trunk/kss/core/browser/kukitresponse.pt Thu Sep 27 12:09:56 2007 @@ -1,9 +1,7 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" - xmlns:kukit="http://www.kukit.org/commands/1.0" +<?xml version="1.0" ?> +<root xmlns:kukit="http://www.kukit.org/commands/1.0" xmlns:tal="http://xml.zope.org/namespaces/tal" - xmlns:metal="http://xml.zope.org/namespaces/metal" - xmlns:i18n="http://xml.zope.org/namespaces/i18n"><body> + xmlns:metal="http://xml.zope.org/namespaces/metal"> <kukit:commands> <kukit:command tal:repeat="command context" selector="div#demo" name="setHtmlAsChild" @@ -14,8 +12,8 @@ <kukit:param tal:repeat="param python: command.params" name="html" tal:attributes="name python: param.name" tal:content="structure python: param.content"> - <h1 xmlns="http://www.w3.org/1999/xhtml">it worked</h1> + <![CDATA[<h1 xmlns="http://www.w3.org/1999/xhtml">it worked</h1>]]> </kukit:param> </kukit:command> </kukit:commands> -</body></html> +</root> Modified: kukit/kss.core/trunk/kss/core/tests/test_kssview_core.py ============================================================================== --- kukit/kss.core/trunk/kss/core/tests/test_kssview_core.py (original) +++ kukit/kss.core/trunk/kss/core/tests/test_kssview_core.py Thu Sep 27 12:09:56 2007 @@ -99,14 +99,13 @@ def _wrapped_commands(self, inline): header = textwrap.dedent(u'''\ - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml" - xmlns:kukit="http://www.kukit.org/commands/1.0"><body> + <?xml version="1.0" ?> + <root xmlns:kukit="http://www.kukit.org/commands/1.0"> <kukit:commands> ''') footer = textwrap.dedent('''\ </kukit:commands> - </body></html> + </root> ''') return header + inline + footer _______________________________________________ Kukit-checkins mailing list [email protected] http://codespeak.net/mailman/listinfo/kukit-checkins
