Mercurial > MadButterfly
comparison pyink/domview.py @ 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 |
comparison
equal
deleted
inserted
replaced
1321:6a014a4ec79e | 1322:7f25abbc1b61 |
---|---|
762 pass | 762 pass |
763 else: | 763 else: |
764 ns = "http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd" | 764 ns = "http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd" |
765 self._root.setAttribute("xmlns:ns0", ns) | 765 self._root.setAttribute("xmlns:ns0", ns) |
766 scenes_node = self._doc.createElement("ns0:scenes") | 766 scenes_node = self._doc.createElement("ns0:scenes") |
767 scenes_node_id = 'main_default_scenes' | |
768 scenes_node.setAttribute('id', scenes_node_id) | |
769 scenes_node.setAttribute('name', 'default') | |
767 node.appendChild(scenes_node) | 770 node.appendChild(scenes_node) |
768 self._scenes_node = scenes_node | 771 self._scenes_node = scenes_node |
769 pass | 772 pass |
770 pass | 773 pass |
771 | 774 |