comparison src/plugins/plugin_misc_quiz.py @ 759:93bd868b8fb6

backend, frontends: callbacks refactoring: - launchAction is now async, and return a dictionary for its result - no more action_id, actionResult* are deprecated - callback system is about to be unified
author Goffi <goffi@goffi.org>
date Tue, 24 Dec 2013 15:19:08 +0100
parents 56aa0e98c92e
children bfabeedbf32e
comparison
equal deleted inserted replaced
758:86224a13cc1d 759:93bd868b8fb6
24 from twisted.words.protocols.jabber import error as jab_error 24 from twisted.words.protocols.jabber import error as jab_error
25 from twisted.words.protocols.jabber.xmlstream import IQ 25 from twisted.words.protocols.jabber.xmlstream import IQ
26 import random 26 import random
27 27
28 from wokkel import data_form 28 from wokkel import data_form
29 from sat.tools.xml_tools import dataForm2XML
30 from sat_frontends.tools.games import TarotCard
31 from time import time 29 from time import time
32 30
33 31
34 NS_QG = 'http://www.goffi.org/protocol/quiz' 32 NS_QG = 'http://www.goffi.org/protocol/quiz'
35 QG_TAG = 'quiz' 33 QG_TAG = 'quiz'