comparison 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
comparison
equal deleted inserted replaced
378:3d40e74d5a9d 379:a3231496c6de
470 except: 470 except:
471 return traceback.format_exc() 471 return traceback.format_exc()
472 def soap_GETDOC(self): 472 def soap_GETDOC(self):
473 try: 473 try:
474 self.target.generate() 474 self.target.generate()
475 return etree.tostring(self.target.document) 475 newdoc = deepcopy(self.target.document)
476 root = newdoc.getroot()
477 for id,node in self.target.selected.iteritems():
478 select = etree.Element('{http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd}select')
479 select.set('ref', id)
480 root.append(select)
481 return etree.tostring(newdoc)
476 except: 482 except:
477 return traceback.format_exc() 483 return traceback.format_exc()
478 import os 484 import os
479 os.chdir('/usr/local/share/inkscape/extensions') 485 os.chdir('/usr/local/share/inkscape/extensions')
480 486