[KSS-checkins] r46036 - kukit/kss.base/trunk/kss/base
jvloothuis at codespeak.net
jvloothuis at codespeak.net
Mon Aug 27 17:08:38 CEST 2007
Author: jvloothuis
Date: Mon Aug 27 17:08:37 2007
New Revision: 46036
Added:
kukit/kss.base/trunk/kss/base/registry.py
Modified:
kukit/kss.base/trunk/kss/base/README.txt
kukit/kss.base/trunk/kss/base/commands.py
Log:
Changed the code to the new protocol
Modified: kukit/kss.base/trunk/kss/base/README.txt
==============================================================================
--- kukit/kss.base/trunk/kss/base/README.txt (original)
+++ kukit/kss.base/trunk/kss/base/README.txt Mon Aug 27 17:08:37 2007
@@ -126,7 +126,7 @@
Now we will look at the individual methods provided by the core commands.
- >>> core.replace_inner_html(CSS('div'), 'some <h1>html</h1>')
+ >>> core.replace_inner_html(CSS('div'), 'some <h1>html</h1>')
>>> commands.render()
'...replaceInnerHTML...some <h1>html</h1>...'
Modified: kukit/kss.base/trunk/kss/base/commands.py
==============================================================================
--- kukit/kss.base/trunk/kss/base/commands.py (original)
+++ kukit/kss.base/trunk/kss/base/commands.py Mon Aug 27 17:08:37 2007
@@ -1,4 +1,4 @@
-from xml.sax.saxutils import quoteattr
+from xml.sax.saxutils import quoteattr, escape
from xml.parsers.expat import ParserCreate, ExpatError
from kss.base.registry import command_set_registry
@@ -47,7 +47,7 @@
action=quoteattr(action)))
for name, value in options.items():
output.append(kss_param % dict(
- name=quoteattr(name), value=value))
+ name=quoteattr(name), value=escape(value)))
output.append(kss_command_end)
output.append(kss_response_footer)
return ''.join(output)
Added: kukit/kss.base/trunk/kss/base/registry.py
==============================================================================
--- (empty file)
+++ kukit/kss.base/trunk/kss/base/registry.py Mon Aug 27 17:08:37 2007
@@ -0,0 +1,4 @@
+from kss.base.commandset import CommandSetRegistry
+
+command_set_registry = CommandSetRegistry()
+
More information about the Kukit-checkins
mailing list