Commit graph libervia-backend/src/plugins
Author SHA1 Message Date
souliane
204f024e0c plugin XEP-0045: make joinMUC asynchronous and fixes its handler 2015-03-07 16:28:12 +01:00
Goffi
60bc78db4c plugin XEP-0054: "nick" is now keeped in cache:
- cache now manage different kind of data (instead of only avatar)
	- PeristentBinaryDict is used to keep cache (because we now store a dict, not just strings)
	- CACHED_DATA is a set of data kept in cache (only nick and avatar so far)
	- a signal update flag is put on "nick"
	- data in cache are reset if they are not present in cache (this avoid to keep the old value)
2015-02-24 17:01:33 +01:00
souliane
d70f08d524 plugin XEP-0085: fixes the calls to memory.deleteEntityDatum and self.updateCache (was self.updateEntityData, has been renamed to avoid confusion with the memory method) 2015-02-22 11:43:11 +01:00
Goffi
027ab18369 plugin xep-0054: various improvments on avatars management:
- avatars_cache is now managing cache load per profile
    - use of new profileConnecting method to load persistent data, this prevent to have presence_available trigger called before cache data is loaded
    - better management of avatars already in cache (prevent decoding avatars when it is already in cache)
2015-02-09 21:39:51 +01:00
Goffi
cdfb2c4dc6 core (memory): updateEntityData now accept a "silent" argument to avoid sending signal to frontends when updating an attribute with "signalOnUpdate" flag. 2015-02-09 21:39:51 +01:00
Goffi
e134c36aa7 plugin XEP-0054: couple of fixes in VCard/avatar management:
- fixed a confusion between full jid and bare jid, resulting in always requesting VCard
    - check of cache data loading before starting
    - stored cache are restored for all jid, not only ones in roster
    - client jid cache is correctly saved/restored
    - minor other fixes

This plugin still need some work, but this patch fixes (hopefully) the major issues
2015-01-26 02:03:16 +01:00
Goffi
8ce5c1862b core, frontends: refactoring to base Libervia on QuickFrontend (big mixed commit):
/!\ not finished, everything is still instable !
    - bridge: DBus bridge has been modified to allow blocking call to be called in the same way as asynchronous calls
    - bridge: calls with a callback and no errback are now possible, default errback log the error
    - constants: removed hack to manage presence without OrderedDict, as an OrderedDict like class has been implemented in Libervia
    - core: getLastResource has been removed and replaced by getMainResource (there is a global better management of resources)
    - various style improvments: use of constants when possible, fixed variable overlaps, import of module instead of direct class import
    - frontends: printInfo and printMessage methods in (Quick)Chat are more generic (use of extra instead of timestamp)
    - frontends: bridge creation and option parsing (command line arguments) are now specified by the frontend in QuickApp __init__
    - frontends: ProfileManager manage a more complete plug sequence (some stuff formerly manage in contact_list have moved to ProfileManager)
    - quick_frontend (quick_widgets): QuickWidgetsManager is now iterable (all widgets are then returned), or can return an iterator on a specific class (return all widgets of this class) with getWidgets
    - frontends: tools.jid can now be used in Pyjamas, with some care
    - frontends (XMLUI): profile is now managed
    - core (memory): big improvment on entities cache management (and specially resource management)
    - core (params/exceptions): added PermissionError
    - various fixes and improvments, check diff for more details
2015-01-24 01:00:29 +01:00
Goffi
b9f967ea5f plugin XEP-0085: disabled a problematic assert (see FIXME) 2014-12-10 18:37:14 +01:00
Goffi
6e144c6458 core: improved roster management + misc:
- updated methods to no use anymore methods deprecated in Wokkel
    - use of full jid when it make sense instead of bare jid
    - getContacts, updateContact and delContact are now asynchronous
2014-12-10 18:32:33 +01:00
souliane
eaa0f83237 plugin XEP-0060: listNodes should not use SatPubSubClient.getDiscoItems but self.host.getDiscoItems, cf. revs 1217 (318eab3f93f8) and 1259 (633fcd13a7dc) 2014-11-24 17:20:51 +01:00
Goffi
fdb50be803 plugin pubsub: fixed redefinition of PubSubRequest 2014-11-21 16:36:24 +01:00
Goffi
ce8e1dcfc1 plugin pubsub: fixed a bug introducted in revision 318eab3f93f8: getDiscoItems handler method which is called on disco items request, was calling getDiscoItems from host, which do a request itself, resulting in an infinite items request loop. 2014-11-21 16:35:40 +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
souliane
a43608b966 plugin XEP-0045: use HISTORY_LIMIT param to retrieve the MUC history 2014-10-22 14:16:01 +02:00
souliane
d974e9ad66 plugin XEP-0054: the fix by revision 1248 (77a4592816f6) was not complete 2014-10-22 11:42:15 +02:00
souliane
5ae8bc7f24 plugin XEP-0085: send 'gone' state before disconnection 2014-10-20 20:26:46 +02:00
souliane
34d191608d plugin XEP-0085: use the full JID + fixes bad entity data "type" value 2014-10-20 12:57:55 +02:00
souliane
af7277d4f4 plugin XEP-0045: set the entity data "type" asap (userJoinedRoom is triggered before the join callback) 2014-10-20 15:09:37 +02:00
souliane
eaa85cb951 plugin sec_otr: a trigger was not returning True 2014-10-20 12:57:27 +02:00
souliane
5be3ccbf38 plugin XEP-0054: fixes error message when we get a ConnectionLost failure 2014-10-19 15:25:04 +02:00
souliane
fe06c14303 core, plugins: improve a bit some log messages 2014-10-18 16:28:37 +02:00
souliane
bf353880b4 plugin misc_imap: fixes call to log.debug with more than one argument 2014-10-19 12:31:28 +02:00
souliane
7eac1b2323 plugin XEP-0115: better disco error handling 2014-10-19 11:54:07 +02:00
souliane
dd0c7fab68 plugins groupblogs: fixes the massive retrieval callback (loop variable was misused in a lambda callback) 2014-10-19 02:48:11 +02:00
souliane
0d80ce6cc2 plugin XEP-0060: fixes listing the nodes on the pubsub service 2014-10-18 20:23:12 +02:00
souliane
100ba3969e plugin XEP-0045: handle MUC presence 2014-10-17 15:49:46 +02:00
Goffi
6b20989ecc core: better management of default value in getConfig 2014-10-07 17:12:41 +02:00
souliane
97630ccab9 plugin XEP-0277, groupblog: fixes namespace issue of the items that are received from an event + trap some errors 2014-10-06 17:25:41 +02:00
souliane
be4fda30dd plugin XEP-0115: trap "service-unavailable" error when retrieving disco infos 2014-10-07 10:19:01 +02:00
souliane
9378e1306a memory (params): use more generic param attribute "constraint" instead of "min" and "max" 2014-10-06 11:18:37 +02:00
souliane
ac59d061f4 memory (params), tools (xml_tools), plugins, frontends: add "int" parameter type with "min" and "max" attributes 2014-10-03 12:27:43 +02:00
souliane
20c94f1fbc plugin XEP-0059: first draft, pubsub and jabber search do not exploit it yet 2014-09-22 22:25:44 +02:00
souliane
3f60f92696 plugin maildir: fixes missing import 2014-09-22 20:50:20 +02:00
souliane
812e0660a2 plugin XEP-0060, groupblog: avoid unecessary pubsub errors while doing massive requests:
- don't try to retrieve items from non accessible nodes
    - don't try to subscribe to non accessible or already subscribed nodes
2014-09-22 20:49:13 +02:00
souliane
830b6d8ef6 memory: Sessions.newSession can be called with a forced session ID 2014-09-21 13:10:55 +02:00
souliane
b30501f004 plugin XEP-0033: fixes sending the message after the changes made in rev 1052 (e88bff4c8b77) 2014-09-11 15:38:57 +02:00
Matteo Cypriani
71e29f5c44 misc: fixed some typos 2014-09-15 14:18:25 +02:00
Goffi
c00daf4a68 plugin OTR: added a warning to tell that the history is not logged anymore and advanced feature are disabled when using OTR 2014-09-08 21:23:18 +02:00
souliane
2a0857fe4f plugin groupblog: fixes return value of getLastGroupBlogsAtom when an error occured 2014-09-08 16:53:41 +02:00
Goffi
45119d4d40 plugins XEP-0096, XEP-0065: fixed bad log calls 2014-09-08 15:50:51 +02:00
souliane
8654193b40 plugin OTR: do not save in history the encrypted messages for skipped profiles 2014-09-07 20:08:56 +02:00
Goffi
a20e3e2cb8 core: a new "info" type is used in newMessage for system messages (not comming from outside) 2014-09-05 19:29:30 +02:00
souliane
af2554a508 plugin OTR: forces FINISHED state if we are in ENCRYPTED state on contact disconnection 2014-09-05 11:16:38 +02:00
souliane
c1e71508c4 plugin OTR: disconnect the active OTR sessions and delete the context on profile disconnection 2014-09-05 11:01:14 +02:00
souliane
f2d630fcad plugin OTR: fixes handling of the FINISHED state 2014-09-05 10:39:06 +02:00
souliane
75c79aba58 plugin OTR: add bridge method skipOTR to desactivate OTR handling for a given profile 2014-09-01 15:45:35 +02:00
souliane
df43c42611 plugin OTR: two small fixes 2014-09-01 16:11:45 +02:00
souliane
fbdca49737 plugin OTR: remove unnecessary attribute SatXMPPClient.otr_priv_key 2014-09-01 16:05:28 +02:00
Goffi
079e13d693 plugin OTR: added ability to drop private key 2014-08-27 01:27:24 +02:00
Goffi
df69c77ea3 plugin OTR: authentication management + fixed a bug in setState (due to a wrong docstring in potr.context.getCurrentTrust) 2014-08-27 00:23:14 +02:00