Author: bree Date: Sun Jan 29 14:23:46 2006 New Revision: 2235 Modified: azax/trunk/azaxresponse.py Log: Rename local var
Modified: azax/trunk/azaxresponse.py ============================================================================== --- azax/trunk/azaxresponse.py (original) +++ azax/trunk/azaxresponse.py Sun Jan 29 14:23:46 2006 @@ -51,9 +51,9 @@ def __init__(self, response=None): etree = config.etree - self._commands = etree.fromstring(HTML_PREFIX % '') - self._body = self._commands[0] - self._commands.set('xmlns:kukit', 'http://www.kukit.org/commands/1.0') + self._html = etree.fromstring(HTML_PREFIX % '') + self._body = self._html[0] + self._html.set('xmlns:kukit', 'http://www.kukit.org/commands/1.0') self._response = response def addCommand(self, name, selector): @@ -62,7 +62,7 @@ def __str__(self): """ renders the xml """ etree = config.etree - result = etree.tostring(self._commands) + result = etree.tostring(self._html) return result def __call__(self): -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins