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
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
f3abbcb467
primivitus: do not notify when an empty message is received
2013-11-25 12:36:49 +01:00
souliane
3dc0d6ac39
primitivus: save the input history when "esc" is pressed
2013-11-25 12:29:14 +01:00
souliane
4d393d47c0
frontends: set and retrieve your own presence and status
2013-11-25 01:56:07 +01:00
souliane
f5dd3f2265
frontends: define the constants with classes and inheritance instance of using __builtin__
2013-11-23 10:21:40 +01:00
souliane
b824f9c2ce
frontends: presence update in quick app:
...
- bug fix "s/type/show/g"
- better PEP8 compliance
- all "show" value different then "unavailable" mean (more or less) "online"
2013-11-24 11:22:20 +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