Commit graph libervia-backend/src
Author SHA1 Message Date
Goffi
b7bf434cd2 core: dynamics menus refactoring:
- menu now use generic callback system, with extra data
    - asyncMenuCall is removed in favor of launchAction
    - menu_id (== callback_id) is used to identify menu instead of category/name/type tuple
    - i18n is managed throught deferred translation, and returned with _i18n suffix
        e.g.: menu (D_('File'), D_('Open')): (u'File', u'Open') is menu_path, (u'Fichier', u'Ouvrir') is french menu_path_i18n.
    - type actually can have the following values:
        - NORMAL: classical menu
        - JID_CONTEXT: contextual menu, used with any jid
        - ROSTER_JID_CONTEXT: like JID_CONTEXT, but restricted to jids in roster.
        - ROSTER_GROUP_CONTEXT: contextual menu, use with groups
    - security_limit is used, in the same way as for parameters
    - when using importMenu, callback can be an actual callback, or one already registered with registerCallback
2013-12-29 17:10:14 +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
souliane
5b623dbb5c plugin groupblog, XEP-0277: store both published and updated timestamps 2013-12-19 13:54:40 +01:00
souliane
ea34ae362a core: fix bridge method getContactsFromGroup return value (list of jids --> list of strings) 2013-12-18 10:39:19 +01:00
souliane
b97f78ca93 plugins radiocol, xep-0054: better handling of upload errors:
- radiocolSongAdded is now asynchronous
- _buildAvatar return a Failure if the image is not readable
2013-12-17 18:44:53 +01:00
souliane
5b632eca67 plugin radiocol: fix wrong call of deleteFile 2013-12-17 11:35:41 +01:00
Goffi
edb1d7c76b plugin xep-0050 (ad-hoc commands): requesting part. first draft 2013-12-24 15:43:52 +01:00
Goffi
3857fff974 core (xml_tools), frontends: added a prefix to XMLUI form names in result data, to avoid name conflicts (e.g.: if a form has name "submit", and this name is also used internally by SàT) 2013-12-24 15:43:22 +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
Goffi
80a7423f02 backend, frontends: XMLUI refactoring:
- session_id is resent in result data if found in incoming data
    - list now use distinct labels and values (label is the one displayed, value is the one used for everything else)
    - misc refactoring

/!\ urwid SàtExt must be updated ! /!\
2013-12-24 15:19:18 +01:00
Goffi
069a250b04 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
2013-12-24 15:19:08 +01:00
Goffi
aa8ca0772c plugin xep-0050: using new Sessions class 2013-12-24 15:19:08 +01:00
Goffi
3f236bbb32 core (memory): added optional profile checking in Sessions:
if profile is set in newSession, getProfile must be used instead of __getitem__, and it is checked to insure session is not used by the wrong profile
2013-12-24 15:19:08 +01:00
Goffi
1550d06922 core (memory): new Sessions management class (similar to dict) 2013-12-24 15:19:08 +01:00
Goffi
71c1def32a core, frontends: callMenu is now async and don't use callback_id anymore 2013-12-24 15:18:31 +01:00
Goffi
5723ee2ef2 core (xml tools): bad default parameter in XMLUI.addList 2013-12-24 01:31:18 +01:00
Goffi
7d60564e23 plugin XEP-0050: fixed getDiscoItems when no commands were added + fixed commands purge on profile disconnection 2013-12-24 01:31:01 +01:00
Goffi
bc776be0f2 core,bridge: sendMessage bridge method is now async 2013-12-17 01:46:45 +01:00
Goffi
b6aaecc5c2 core, bridge: better GenericException handling 2013-12-17 00:56:39 +01:00
souliane
09e5cc47bb plugin XEP-0033: avoid the controlled error to explode (use return Failure(...) instead of raise) 2013-12-16 17:49:54 +01:00
souliane
d12cf069f8 plugin XEP-0033: bug fix for sending messages with the addressing feature to several servers 2013-12-16 14:48:28 +01:00
souliane
d98b470117 core: bug fix for serverDiscoItems (bad use of addCallbacks) 2013-12-16 14:36:38 +01:00
souliane
bbadfda25b core: bug fix for requestServerDisco in sat_main.py + added getAllServerIdentities method in memory.py 2013-12-16 14:35:26 +01:00
souliane
e8ae4435a3 plugin room_games, radiocol: send the current queue to new players 2013-11-28 19:23:59 +01:00
souliane
481bee01c2 plugins groupblog (xep-0060, xep-0277): added blog item modification/deletion 2013-12-10 09:02:20 +01:00
souliane
7d3f74ef62 plugins text-syntaxes: added a default value to use the current user syntax in convert 2013-12-09 15:31:07 +01:00
souliane
89c2519ae7 plugin XEP-0045: remove redondant errback from _join 2013-11-28 21:27:18 +01:00
souliane
718bb98300 plugin XEP-0033: implementation of the addressing feature:
- frontends pass the recipients in the extra parameter of sendMessage
    - backend checks if the target server supports the feature (this is not done yet by prosody plugin)
    - features and identities are cached per profile and server
    - messages are duplicated in history for now (TODO: redesign the database)
    - echos signals are also duplicated to the sender (FIXME)
2013-12-11 17:16:53 +01:00
souliane
b674011891 core (tools): set min and max priorities for triggers and warn if several triggers have the same not null priority 2013-12-13 05:35:24 +01:00
souliane
5c39b346a8 bridge (constructor): added categories for the mediawiki export 2013-11-25 13:32:21 +01:00
souliane
2584394e62 core: bad indentation in SatPresenceProtocol.available 2013-11-24 11:15:54 +01:00
Goffi
6118c7f00f reverted last commit 2013-12-13 17:46:35 +01:00
Goffi
cade2480df plugin account: don't wait for emails anymore 2013-12-13 17:40:48 +01:00
Goffi
b9cf5049b5 plugin microbloging: fixes bad calls 2013-12-13 17:18:29 +01:00
Goffi
ce3e28d588 plugin account: configuration constants can be overriden in sat.conf (section "plugin account") + better deferred management in email sending 2013-12-13 17:15:57 +01:00
Goffi
4b662563c9 core: management of _list and _dict in sat.conf 2013-12-12 01:06:19 +01:00
Goffi
f7efb167c8 plugin XEP-0050: Ad-Hoc commands first draft (answering part) 2013-12-10 17:25:31 +01:00
Goffi
05bf17c777 core: fixed statuses parameter in setPresence, and using @NONE@ instead of @DEFAULT@ for default profile_key 2013-12-10 17:25:31 +01:00
Goffi
2ad1019de7 core: use of Twisted JID instead of string bare jid in roster SatRosterProtocol 2013-12-10 17:25:31 +01:00
Goffi
ec3a502fdf plugin XEP-0055: fixed form's namespace 2013-12-03 13:51:08 +01:00
Goffi
9a7433803b plugin XEP-0085: fixed bad return value for sendMessage trigger's post treatment 2013-12-03 13:09:49 +01:00
Goffi
be66155439 bridge: fixed bridge_constructor 2013-12-01 17:28:30 +01:00
Goffi
72fa3c5c70 core (memory): fixed setDefault behaviour + minor refactoring 2013-11-28 17:23:08 +01:00
Goffi
9fdc271294 jp: removed named argument for pipeOut, as it's not managed with dynamicaly added methods 2013-11-26 18:30:35 +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
6a99705523 frontends tools: added symbols for MUC user activity identification 2013-11-21 15:38:53 +01:00
souliane
b037678f13 plugins XEP-0045: added methods to get room nicks and "MUC user left" trigger 2013-11-19 19:31:59 +01:00
souliane
d3c12524c9 plugins (games): add a method to send messages more easily 2013-11-18 14:25:40 +01:00