Commit graph libervia-backend/src/plugins/plugin_misc_tarot.py
Author SHA1 Message Date
souliane
67ff77e5de massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions 2015-04-16 14:57:57 +02:00
Goffi
fbec02d396 2015 copyright dates update 2015-03-30 10:26:26 +02:00
souliane
5ef7999fa7 plugins room_game, quiz, radiocol, tarot: use JID instead of unicode in many methods + class attributes 2015-03-11 12:36:22 +01:00
souliane
ba2cf4d448 plugin misc_room_game, radiocol, tarot: fixes bridge method "prepareRoom" declaration (add "async=True") 2014-10-22 14:38:20 +02:00
Goffi
501bc92528 core: use of the new core.log module:
/!\ this is a massive refactoring and was largely automated, it probably did bring some bugs /!\
2014-04-19 19:19:19 +02:00
Goffi
005ec59a8a core: use of Const for profile_key + replaced '@DEFAULT@' default profile_key by '@NONE@' 2014-03-21 16:27:09 +01:00
souliane
5b3d5a2f42 plugin card_game: update to use the new XMLUI mechanism:
TODO: the new round is not starting after the scores have been displayed
2014-02-26 02:17:43 +01:00
souliane
30dfdf1025 plugins room_games, radiocol, libervia: small changes like refactorization to ease the maintenance 2014-01-17 15:02:46 +01:00
souliane
8b700a6d48 plugins radiocol_tarot: do not process received messages for MUC users that are actually not playing the game + fix for testing purpose 2014-01-15 23:09:39 +01:00
souliane
9e6845472d plugins room_games, radiocol: better synchronization after a user joins a running game 2014-01-15 23:01:23 +01:00
Goffi
2ca6efd8cc dates update 2014-02-04 18:32:49 +01:00
Goffi
5a00dc9503 core: i18n refactoring:
- _() is no more installed in __builtin__
    - instead, there is a new sat.core.i18n module
    - added D_() method for deferred translation
    - languageSwitch method allow to dynamically change translation language
    - import gettext is tested against ImportError, and dummy methods are used when not available (mainly useful for Libervia)
2013-12-29 17:06:01 +01:00
Goffi
4d15d4a4eb core (xml_tools): dataForm*2XML renamed to dataForm*2XMLUI and now return XMLUI instead of raw XML + submit_id is managed, and session_id is returned if present 2013-12-24 15:43:22 +01:00
souliane
d7d411d6ef frontends tools: moved src/tools/frontends to frontends/src/tools 2013-11-21 18:57:10 +01:00
souliane
674a3e958d plugin tools: turn src/plugin/games.py into a plugin and move it to src/plugins/plugin_misc_room_game.py 2013-11-21 18:23:08 +01:00
souliane
ea67ed7a61 plugins (games): more factorization and flexibility for launching and joining games:
- "MUC user joined", "MUC user left" and class XMPPHandler are managed directly in RoomGame
- renamed __init__ parameters 'player_init_data' to 'player_init' and 'options' to 'game_init'
- pass the players list in radiocol method 'createGame' and signal 'radiocolStarted' (needed for invitation system and for UI players identification)
- added some parameters to manage who can invite, who can join, who to wait for... managed with check***Auth methods
- joining a game that is already launched may be possible, regarding these parameters and the invitation list
- leave and join a game again is partly managed: new tarot round is launched, we should keep playing the same round instead
2013-11-21 15:49:53 +01:00
souliane
d3c12524c9 plugins (games): add a method to send messages more easily 2013-11-18 14:25:40 +01:00
souliane
8190f82caf plugins (MUC, tools, games): generalize the generation of a unique room name when joining a MUC and no room is specified:
- method to get the MUC service moved to plugin_xep_0045
- joinMUC returns the muc name (given by user or generated)
- getUniqueName can receive a specified service in argument
2013-11-17 16:59:12 +01:00
souliane
34947f8840 plugins radiocol, card_game, quiz: code factorization 2013-10-23 12:45:13 +02:00
souliane
ba4c9158ea tools: moved src/tools/games.py to src/tools/frontends/ 2013-10-18 11:58:42 +02:00
Goffi
0cce82d3ea 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.
2013-09-08 18:05:19 +02:00
Goffi
1cd98e8dea fixed licences in docstrings (they are now in comments) 2013-03-08 00:36:22 +01:00
Emmanuel Gil Peyrot
0dca274360 Fix pep8 support in src/plugins. 2013-01-18 17:55:35 +01:00
Emmanuel Gil Peyrot
88074cd284 Remove every old-style class. 2013-01-18 17:55:35 +01:00
Emmanuel Gil Peyrot
27b3592e16 Remove trailing whitespaces. 2013-01-18 17:55:34 +01:00
Goffi
def79e44cd dates update 2013-01-07 23:30:13 +01:00
Goffi
b81741f53d plugin Tarot: fixed plugin 2012-12-28 02:27:34 +01:00
Goffi
a6d8990e49 core, plugins: fixed bad namespace in stanza creation 2012-11-01 22:41:39 +01:00
Goffi
c5a930b627 Licence modification: the full project is now under AGPL v3+ instead of GPL v3+ 2012-08-01 22:53:02 +02:00
Goffi
21dbb4473a copyleft date update 2012-03-06 09:07:24 +01:00
Goffi
ad29111416 core: plugins refactored according to bridge + updatedValue now use profile 2011-07-06 01:06:18 +02:00
Goffi
bb255b7a3d Quiz game: buzzer, timer, answer management 2011-06-12 22:34:15 +02:00
Goffi
fb41ecbbf5 Quizz game: first draft 2011-06-12 16:28:33 +02:00
Goffi
2ff3e80b08 Tarot game:
- draw game managed
- we can now play continuously \o/
2011-05-23 00:46:51 +02:00
Goffi
af4545070b plugin Tarot: added a launch method to automatically create a new room, invite players and create the game
- xep-0249 (direct MUC invitation) is used with a custom attribute to invite other users
- bridge: added tarotGameLaunch in frontend side
2011-05-06 15:42:26 +02:00
Goffi
27274bfda0 plugins: fixed bad import names 2011-02-06 23:49:27 +01:00
Goffi
02509cdeb1 2011 copyright upgrade 2011-01-05 18:52:38 +01:00
Goffi
e4452c4b03 Files reorganisation 2010-12-29 01:06:29 +01:00
Renamed from plugins/plugin_misc_tarot.py (Browse further)