Author: reebalazs
Date: Thu Sep 13 18:22:55 2007
New Revision: 46542
Modified:
kukit/azax/branch/1.1-ree-binding-improvements/commands.py
kukit/azax/branch/1.1-ree-binding-improvements/configure.zcml
kukit/azax/branch/1.1-ree-binding-improvements/plugins/core/commands.py
Log:
Backport base2 fix from trunk. Merges: -r46602:46603,46026:46152
Modified: kukit/azax/branch/1.1-ree-binding-improvements/commands.py
==============================================================================
--- kukit/azax/branch/1.1-ree-binding-improvements/commands.py (original)
+++ kukit/azax/branch/1.1-ree-binding-improvements/commands.py Thu Sep 13
18:22:55 2007
@@ -127,7 +127,9 @@
def addHtmlParam(self, name, content=''):
'Add the param as an HTML content.'
content = HtmlParser(content)().encode('ascii', 'xmlcharrefreplace')
- self.addParam(name, content=content)
+ ##self.addParam(name, content=content)
+ # add html as cdata!
+ self.addCdataParam(name, content=content)
def addXmlParam(self, name, content=''):
'Add the param as XML content'
Modified: kukit/azax/branch/1.1-ree-binding-improvements/configure.zcml
==============================================================================
--- kukit/azax/branch/1.1-ree-binding-improvements/configure.zcml
(original)
+++ kukit/azax/branch/1.1-ree-binding-improvements/configure.zcml Thu Sep
13 18:22:55 2007
@@ -35,6 +35,11 @@
/>
<browser:resource
+ file="kukit/3rd_party/cssQuery-compat.js"
+ name="cssQuery-compat.js"
+ />
+
+ <browser:resource
file="kukit/3rd_party/MochiKit.js"
name="MochiKit.js"
/>
Modified:
kukit/azax/branch/1.1-ree-binding-improvements/plugins/core/commands.py
==============================================================================
--- kukit/azax/branch/1.1-ree-binding-improvements/plugins/core/commands.py
(original)
+++ kukit/azax/branch/1.1-ree-binding-improvements/plugins/core/commands.py
Thu Sep 13 18:22:55 2007
@@ -35,15 +35,13 @@
def replaceInnerHTML(self, selector, new_value):
""" see interfaces.py """
- new_value = HtmlParser(new_value)().encode('ascii',
'xmlcharrefreplace')
command = self.commands.addCommand('replaceInnerHTML', selector)
- data = command.addParam('html', new_value)
+ data = command.addHtmlParam('html', new_value)
def replaceHTML(self, selector, new_value):
""" see interfaces.py """
- new_value = HtmlParser(new_value)().encode('ascii',
'xmlcharrefreplace')
command = self.commands.addCommand('replaceHTML', selector)
- data = command.addParam('html', new_value)
+ data = command.addHtmlParam('html', new_value)
def setAttribute(self, selector, name, value):
""" see interfaces.py """
@@ -59,27 +57,23 @@
def insertHTMLAfter(self, selector, new_value):
""" see interfaces.py """
- new_value = HtmlParser(new_value)().encode('ascii',
'xmlcharrefreplace')
command = self.commands.addCommand('insertHTMLAfter', selector)
- data = command.addParam('html', new_value)
+ data = command.addHtmlParam('html', new_value)
def insertHTMLAsFirstChild(self, selector, new_value):
""" see interfaces.py """
- new_value = HtmlParser(new_value)().encode('ascii',
'xmlcharrefreplace')
command = self.commands.addCommand('insertHTMLAsFirstChild', selector)
- data = command.addParam('html', new_value)
+ data = command.addHtmlParam('html', new_value)
def insertHTMLAsLastChild(self, selector, new_value):
""" see interfaces.py """
- new_value = HtmlParser(new_value)().encode('ascii',
'xmlcharrefreplace')
command = self.commands.addCommand('insertHTMLAsLastChild', selector)
- data = command.addParam('html', new_value)
+ data = command.addHtmlParam('html', new_value)
def insertHTMLBefore(self, selector, new_value):
""" see interfaces.py """
- new_value = HtmlParser(new_value)().encode('ascii',
'xmlcharrefreplace')
command = self.commands.addCommand('insertHTMLBefore', selector)
- data = command.addParam('html', new_value)
+ data = command.addHtmlParam('html', new_value)
def clearChildNodes(self, selector):
""" see interfaces.py """
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins