Commit graph

794 commits

Author SHA1 Message Date
souliane
cd45ede2d2 test: silent info/warning that were polluting the output 2014-01-10 18:19:34 +01:00
souliane
db832c1f6b test: define the constants JIDs and profiles as lists 2014-01-09 11:18:33 +01:00
souliane
f2503f89ae plugins room games, XEP-0045: small fixes, improved docstrings 2014-01-10 18:07:36 +01:00
souliane
9f9ea3acf0 plugin room game: improved docstrings, added '_' as prefix for internal methods names 2014-01-09 10:28:25 +01:00
souliane
6be767ae3b test: use the SatTestCase methods instead of builtin "assert" in tests for memory, plugin xep-0033 2014-01-07 09:27:53 +01:00
Emmanuel Gil Peyrot
31607daee1 plugin XEP-0054: also work with python2-pillow 2014-01-10 21:12:06 +01:00
souliane
84bfd205dd test: added tests for XEP-0033 2014-01-05 13:05:31 +01:00
souliane
96b1d58eb7 test: FakeMemory inherits from Memory + more helpers basic support + cleaning 2014-01-05 13:04:54 +01:00
souliane
1986ea26ca plugin XEP-0033: the comparison for auto-fixing for the stanza recipient was not correct 2014-01-05 13:00:17 +01:00
souliane
78a3d845db memory: factorize the node checks in Params.__constructProfileXml 2014-01-05 07:26:41 +01:00
souliane
9dc518a2a9 test: added tests for XEP-0085 2014-01-04 21:09:32 +01:00
souliane
6007937962 test: added some tests for Memory 2014-01-04 17:16:40 +01:00
souliane
8307896c4f test: added support of basic memory stuff in helpers.py 2014-01-04 15:46:30 +01:00
souliane
a21e3c2783 test: store the constants in constants.py + better PEP8 compliance 2014-01-04 15:45:08 +01:00
souliane
821f0b36ef memory: bug fix related to method paramsRegisterApp + getParams was not always returning a Deferred 2014-01-04 21:13:51 +01:00
souliane
409bbccebe memory: fixed wrong information in the docstrings for security_limit 2014-01-04 21:12:49 +01:00
souliane
4a0d8be8ec core, bridge: new method paramsRegisterApp to register frontend's specific parameters 2013-12-27 13:28:26 +01:00
Goffi
fc003ecf77 frontends: fixed sendMessage calls, sendMessage is now async so callback and errback need to be specified + redraw in PrimivitusApp.notify 2014-01-03 21:25:07 +01:00
Goffi
401f47273b i18n: merged jp i18n french translation in core fr.po 2013-12-29 17:48:14 +01:00
Goffi
61735f8d8f core: fixed setup.py (removed former sat_frontends and jp i18n references) 2013-12-29 17:48:04 +01:00
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
f46a7bf23d i18n: merged sat_frontends and sat translations in core's i18n
Translations still need to be updated
2013-12-29 17:10:10 +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
13a644531f tools: addURLToText moved from libervia to sat_frontends/tools/strings 2013-12-18 15:37:30 +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
74fc11535c quick_frontend: fix presence/status update (do not share between different resources) 2013-12-18 09:55:02 +01:00
souliane
0f2ba87b59 primitivus: redraw after changing the presence or status 2013-12-18 07:44:35 +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