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.
This commit is contained in:
parent
365e69f3a7
commit
0cce82d3ea
4 changed files with 196 additions and 31 deletions
|
|
@ -25,7 +25,7 @@ import random
|
|||
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 @@ class Tarot(object):
|
|||
|
||||
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 @@ class Tarot(object):
|
|||
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':
|
||||
|
|
|
|||
Loading…
Reference in a new issue