Mercurial > MadButterfly
changeset 1322:7f25abbc1b61
Assign a name and ID for scenes node of main component
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 23 Jan 2011 09:24:01 +0800 |
parents | 6a014a4ec79e |
children | ffbbd3aa218d |
files | pyink/domview.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pyink/domview.py Sun Jan 23 09:06:05 2011 +0800 +++ b/pyink/domview.py Sun Jan 23 09:24:01 2011 +0800 @@ -764,6 +764,9 @@ ns = "http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd" self._root.setAttribute("xmlns:ns0", ns) scenes_node = self._doc.createElement("ns0:scenes") + scenes_node_id = 'main_default_scenes' + scenes_node.setAttribute('id', scenes_node_id) + scenes_node.setAttribute('name', 'default') node.appendChild(scenes_node) self._scenes_node = scenes_node pass