diff src/plugins/plugin_misc_tarot.py @ 630:0b914394e74f

core: added advanced list to XMLUI (need improvment, very basic so far) - the advanced list use headers which can be used as columns - in the future, should provide the ability to highly customize list disposition, in a way similar to Amarok 2's playlist.
author Goffi <goffi@goffi.org>
date Sun, 08 Sep 2013 18:05:19 +0200
parents 84a6e83157c2
children 2805fa3f4bdf
line wrap: on
line diff
--- a/src/plugins/plugin_misc_tarot.py	Sun Sep 08 18:05:19 2013 +0200
+++ b/src/plugins/plugin_misc_tarot.py	Sun Sep 08 18:05:19 2013 +0200
@@ -25,7 +25,7 @@
 from zope.interface import implements
 
 from wokkel import disco, iwokkel, data_form
-from sat.tools.xml_tools import dataForm2xml
+from sat.tools.xml_tools import dataForm2XML
 from sat.tools.games import TarotCard
 
 from time import time
@@ -600,7 +600,7 @@
 
             elif elt.name == 'contrat':  # it's time to choose contrat
                 form = data_form.Form.fromElement(elt.firstChildElement())
-                xml_data = dataForm2xml(form)
+                xml_data = dataForm2XML(form)
                 self.host.bridge.tarotGameChooseContrat(room_jid.userhost(), xml_data, profile)
 
             elif elt.name == 'contrat_choosed':
@@ -753,7 +753,7 @@
                 for looser in elt.elements(name='looser', uri=NS_CG):
                     loosers.append(unicode(looser))
                 form = data_form.Form.fromElement(form_elt)
-                xml_data = dataForm2xml(form)
+                xml_data = dataForm2XML(form)
                 self.host.bridge.tarotGameScore(room_jid.userhost(), xml_data, winners, loosers, profile)
             elif elt.name == 'error':
                 if elt['type'] == 'invalid_cards':