del net-oscar
[learning-git.git] / pgworksheet_yvesf / plugins / resultView / ResultViewSaveXML.py
blobe79d5a46f0837744c1a750995db8757604813138
1 import pygtk;
2 import gtk;
3 import pgw;
4 import pgw.Plugin;
6 import elementtree.ElementTree as ET
7 import gettext
9 _ = gettext.gettext
10 #<results>
11 #<columns>
12 # <column name="foo" type="str" />
13 #</columns>
14 #<rows>
15 # <row>
16 # <column name="foo">VALUE</column>
17 # </row>
18 # <row>
19 # <column name="foo">FOO</column>
20 # </row>
21 #</rows>
22 #</results>
24 class ResultViewSaveXML(pgw.Plugin.ResultViewPlugin):
25 name = _('Als XML Speichern')
26 def __init__(self, app, result):
27 pgw.Plugin.ResultViewPlugin.__init__(self, app)
29 self.add(gtk.Button(result.sql))
30 self.show_all()
33 EXPORTS=[ResultViewSaveXML]