Mercurial > MadButterfly
diff inkscape/firefox/MBServer.py @ 379:a3231496c6de
merge
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 04 Apr 2009 11:55:11 +0800 |
parents | 7d244a85dd68 |
children | 29145d2affdb |
line wrap: on
line diff
--- a/inkscape/firefox/MBServer.py Sat Apr 04 11:54:37 2009 +0800 +++ b/inkscape/firefox/MBServer.py Sat Apr 04 11:55:11 2009 +0800 @@ -472,7 +472,13 @@ def soap_GETDOC(self): try: self.target.generate() - return etree.tostring(self.target.document) + newdoc = deepcopy(self.target.document) + root = newdoc.getroot() + for id,node in self.target.selected.iteritems(): + select = etree.Element('{http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd}select') + select.set('ref', id) + root.append(select) + return etree.tostring(newdoc) except: return traceback.format_exc() import os