Commit graph libervia-backend/src/plugins
Author SHA1 Message Date
Goffi
a667873b99 plugin XEP-0059: fixed bad disco handling 2015-08-18 09:01:18 +02:00
souliane
71f0f14b36 plugin OTR: fixes a couple of typos 2014-09-03 20:55:54 +02:00
Goffi
0f10526746 core: getProfileName no raise ProfileUnknownError + minor doc fixes 2015-08-16 00:41:58 +02:00
Goffi
b7409e0488 plugins xep-0060, xep-0163, xep-0277, groupblog: bloging improvments (huge patch, sorry):
/!\ not everything is working yet, and specially groupblogs are broken /!\
    - renamed bridge api to use prefixed methods (e.g. psSubscribeToMany instead of subscribeToMany in PubSub)
    - (xep-0060): try to find a default PubSub service, and put it in client.pubsub_service
    - (xep-0060): extra dictionary can be used in bridge method for RSM and other options
    - (xep-0060): XEP_0060.addManagedNode and XEP_0060.removeManagedNode allow to easily catch notifications for a specific node
    - (xep-0060): retractItem manage "notify" attribute
    - (xep-0060): new signal psEvent will be used to transmit notifications to frontends
    - (xep-0060, constants): added a bunch of useful constants
    - (xep-0163): removed personalEvent in favor of psEvent
    - (xep-0163): addPEPEvent now filter non PEP events for in_callback
    - (xep-0277): use of new XEP-0060 plugin's addManagedNode
    - (xep-0277): fixed author handling for incoming blogs: author is the human readable name, author_jid it jid, and author_jid_verified is set to True is the jid is checked
    - (xep-0277): reworked data2entry with Twisted instead of feed, item_id can now be specified, <content/> is changed to  <title/> if there is only content
    - (xep-0277): comments are now managed here (core removed from groupblog)
    - (xep-0277): (comments) node is created if needed, default pubsub service is used if available, else PEP
    - (xep-0277): retract is managed
2015-08-16 00:39:44 +02:00
Goffi
f32b006d54 plugin text-syntaxes: minor variable renaming 2015-08-16 00:06:59 +02:00
Goffi
1e21730bfe plugin XEP-0277: added mBGetFromManyWithComments to have items + comments in one method call 2015-08-15 22:24:38 +02:00
Goffi
45c81e068b plugin XEP-0277: better parsing of atom:author element + item2mbdata minor reorganisation for better readability 2015-08-15 22:22:36 +02:00
Goffi
c3e34047b2 plugin xep-0060,xep-0277: added getFromMany using new RTDeferredSession mechanism 2015-08-15 22:22:34 +02:00
Goffi
7e83aaedb3 plugins xep-0060, xep-0277: added methods to serialise getItems result (before bridge transmission):
serItemsData is used for normal callbacks, and serItemsDataD for callbacks which return deferred. These methods simplifly the code by making the re-use of getItems more easy.
2015-08-15 22:20:56 +02:00
Goffi
2b20bff614 plugins xep-0277, groupblog: added subscriteToMany to replace massiveSubscribeGroupBlogs + added SatRosterProtocol.getJidsSet 2015-08-15 22:20:43 +02:00
Goffi
d4008f22ec plugin XEP-0060: use of new RTDeferredSession to subscribe many nodes at once + subscribeToMany can now subscribe on separate services 2015-08-15 22:13:27 +02:00
Goffi
fd3e9ce044 plugins xep-0060, xep-0277: code simplification/cleaning/fix:
- plugin xep-0060: moved rsm data to a more general metadata dict, which will contain all data relative to the node/items set. RSM metadata are prefixed with "rsm_"
    - plugin xep-0060: minor docstring fixes
    - plugin xep-0060: removed cache to simplify code base
    - fixed broken getLastMicroblogs
    - added _getLastMicroblogs as wrapper to getLastMicroblogs, for bridge
    - removed lxml dependecy for this plugin, use native twisted instead
    - several improvments/fixes in item2mbdata
2015-08-15 22:13:27 +02:00
souliane
3595d2656b plugin misc_groupblog: pubsub response do not fail when target server doesn't handle RSM 2015-07-14 16:44:15 +02:00
souliane
6f8e97860a plugin XEP-0054: fixes bug introduced by changeset 1255 (38fb8823cee8) 2015-07-14 12:57:07 +02:00
souliane
fdad3cf3c9 plugin misc_account: change the message sent by email after an account creation 2015-06-06 17:01:22 +02:00
Goffi
af3ec67047 core (tests): fixed bad use of reserved name 2015-04-23 15:16:06 +02:00
Goffi
13ed04b83d plugin groupblog, tmp (mam, rsm): some style improvments/fixes:
- renamed variables nammed after reserved word/module
    - removed class variables which are not needed
    - removed external parenthesis from asserts
    - in mam.MAMPrefs, removed default value for default argument, as None can't be used
    - (groupblog) extended docstring for DeferredItems and DeferredItemsFromMany
2015-04-23 13:35:21 +02:00
Goffi
899c503255 plugins xep-0277: some methods reordering to make the plugin more readable 2015-04-23 10:25:47 +02:00
Goffi
9a3fd0c2b3 plugins groupblog, xep-0060: first pass of simplification 2015-04-22 20:21:55 +02:00
Goffi
59d21b93d1 plugins (groupblog, xep-0277) + tmp(rsm): improved style:
- removed external parenthesis in assertions
    - added blank line after first line of docstrings
    - replaced "__" prefixes by "_"
    - renamed variabled named after the reserverd word "max" to "max_"
2015-04-22 18:30:28 +02:00
souliane
41b549f7ae core, plugin XEP-0045, frontends: change frontend method "setStatusOnline" for "setPresenceStatus":
- remove parameter "online" (can be guess from "presence" value)
    - process "statuses" dict in quick_frontend, so this method can get a simple unicode "status"
    - add C.PRESENCE_STATUSES_DEFAULT to define the key to use for fallback status
2015-04-20 16:39:38 +02:00
souliane
d9a7804fb5 plugin radiocol: radiocolSongAdded now gets a JID as argument, add _radiocolSongAdded working with unicode for bridge calls 2015-04-17 19:05:37 +02:00
souliane
67ff77e5de massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions 2015-04-16 14:57:57 +02:00
souliane
bf04fcf780 plugin XEP-0045, quick_frontend, primitivus: replace C.DEFAULT_MUC by bridge method getDefaultMUC (value is defined in plugin XEP-0045 and can be overriden with the config file) 2015-04-09 11:27:13 +02:00
Goffi
fbec02d396 2015 copyright dates update 2015-03-30 10:26:26 +02:00
souliane
3bff0d0237 memory, plugin XEP-0045: getMainResource returns None when asking a MUC entity + fixes /whois on a MUC (bare) entity 2015-03-25 15:28:02 +01:00
souliane
d4c627d71f plugins XEP-0045, XEP-0249: allow to join / invite without specifying the JID's host part (use client's values) 2015-03-24 07:34:32 +01:00
Goffi
6875e4f906 plugin XEP-0045: /join text command can be used in all contexts, not only group 2015-03-20 20:49:58 +01:00
souliane
29ffc8a544 plugin XEP-0085, quick_frontend: fixes chat states 2015-03-20 17:47:48 +01:00
Goffi
76065758df renamed tools.misc to tools.trigger 2015-03-19 19:44:37 +01:00
Goffi
66230e2156 plugin text commands: minor docstrings improvments 2015-03-19 14:41:15 +01:00
Goffi
a820e07d8f plugin text commands: minor docstrings improvments 2015-03-19 14:38:02 +01:00
Goffi
9443b14c59 plugin text command, XEP-0045, XEP-0048, XEP-0249: removed feedBackWrongContext which is no more usefull with new _contextValid method 2015-03-19 14:30:08 +01:00
Goffi
b2bb3ed564 plugin text commands: added _contextValid method:
- _contextValid check if a method can be called in this context, according to docstring declaration
    - use it to parse results in /help command
    - use it avoid use of command in wrong context, and help message is sent in this case
2015-03-19 14:29:03 +01:00
Goffi
c4cd6fd5f3 plugin text commands: docstring parsing for commands, and better /help command:
- docstring are parsed according to http://wiki.goffi.org/wiki/Coding_style/en#Text_commands, a data dictionary is filled accordingly
    - /help command can now show detailed help for a specific command
2015-03-19 14:02:37 +01:00
Goffi
6760c927d3 merged branch frontends_multi_profiles 2015-03-18 10:52:28 +01: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
d9cc2f181e plugins XEP-0045, XEP-0249, parrot: use JID instead of unicode in many methods + class attributes 2015-03-11 12:35:21 +01:00
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
souliane
0bb673aa64 plugin groupblog: fixes bad errback default value 2015-01-30 14:08:01 +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
souliane
b080904b38 plugin XEP-0313: handle forwarded pubsub event 2015-01-15 21:54:53 +01:00
souliane
1a1deb5056 tmp, plugins: fixes the imports fron sat.tmp 2015-01-14 10:44:49 +01:00
souliane
27cb7fac73 plugin XEP-0313: update (still draft) 2015-01-09 10:51:12 +01:00
souliane
24fafc9760 tmp: update tmp.wokkel.rsm, add tmp.wokkel.mam 2015-01-09 10:50:11 +01:00