Commit graph libervia-backend/src/plugins
Author SHA1 Message Date
Goffi
8a52f6defa plugin text commands: refactoring, text now only contain main commands, and other plugin can add commands themselve:
- registerTextCommands can be called by a plugin in its __init__ method, it looks for methods starting with "cmd_" and register them as new commands
    - addWhoIsCb: add a callback to /whois command, the callback can complete whois informations
    - plugins parrot, XEP-0045 and XEP-0092 now manage their own commands
2014-03-24 10:57:15 +01:00
Goffi
93826f1ce8 core: sendMessageTrigger now manage pre and post treatments, which happen before or after XML generation 2014-03-22 15:34:05 +01:00
Goffi
bd3890a8f0 plugin text commands: refactoring:
- commands can now return a deferred
    - if commands return True, message is sent, else it is cancelled
    - the escape sequence is now '//' instead of '\/'
    - added software version to /whois command
2014-03-22 13:47:33 +01:00
Goffi
0ff40fcdac plugin XEP-0092: new plugin (software version) 2014-03-22 13:44:33 +01:00
Goffi
005ec59a8a core: use of Const for profile_key + replaced '@DEFAULT@' default profile_key by '@NONE@' 2014-03-21 16:27:09 +01:00
souliane
c3aea2f388 plugin XEP-0085: bug fixes, especially for groupchat messages 2014-03-18 13:52:12 +01:00
souliane
e8f9ca2c0f plugin radiocol: preload signal also contains the uploader nickname 2014-03-11 11:59:11 +01:00
souliane
fcb9eeb570 plugin radiocol: add MP3 support 2014-03-05 23:24:03 +01:00
souliane
5b2e60e22e plugin account: user can change his password or delete his XMPP account 2014-03-03 10:00:15 +01:00
souliane
528ceb5f8b plugin groupblog: added a convenient bridge method getGroupBlogsWithComments 2014-02-28 11:19:08 +01:00
souliane
2b2fa9fd4a plugin XEP-0060, groupblog: added nodeIdentifiers attribute to getItems in order to retrieve items by ids 2014-02-25 17:49:15 +01:00
souliane
765eecb37c plugin blog_banner: added temporary plugin with a user parameter to set a blog banner 2014-02-25 11:32:21 +01:00
souliane
5b3d5a2f42 plugin card_game: update to use the new XMLUI mechanism:
TODO: the new round is not starting after the scores have been displayed
2014-02-26 02:17:43 +01:00
souliane
e8f6c14436 plugin room_game: fix issues with data structures initialization 2014-02-26 02:13:29 +01:00
souliane
647db64941 tools, plugin XEP-0077: small fixes 2014-02-25 22:58:42 +01:00
Goffi
f4396db0d2 plugin misc account: updated the welcome email 2014-02-25 23:45:50 +01:00
Goffi
fecc93ba15 plugin demo directory: temporary plugin to integrate Salut's directory in SàT's parameters:
this plugin has to be explicitly activate in sat.conf with the following parameters in category [plugin demo directory]:
activate=yes ==> to activate
service=salut.domain.tld ==> Salut service jid
This plugin is dependant of Salut's implementation, and will not work with other services
2014-02-25 23:03:17 +01:00
Goffi
532cf0534a plugin XEP-0085: fixed bad trigger return value 2014-02-25 23:03:17 +01:00
Goffi
14e6c1b853 plugin XEP-0055: salut.libervia.org is temporarly used as default value 2014-02-25 23:03:17 +01:00
souliane
c2408dc57d plugin groupblog: bug fix for the atom feed 2014-02-24 12:21:59 +01:00
souliane
7a9fb7f505 plugin XEP-0277: fix pubsub entry parsing using lxml instead of feed.atom 2014-02-23 13:54:41 +01:00
souliane
8335f92c87 plugins groupblog, XEP-0277: attempt to clarify the code for the comments handling:
- add or update some methods docstrings
- add GroupBlog.__fillCommentsElement to factorize the code responsible to build the comments link
- do not mix up attributes names between the item own service/node and the comments service/node
2014-02-14 21:24:31 +01:00
souliane
680dd48587 test: fix the tests for plugin room game 2014-02-20 17:51:51 +01:00
Goffi
80afa4ed37 plugin XEP-0277: last commit was actually a part of the next one 2014-02-23 23:59:02 +01:00
Goffi
b0bbd32038 plugin XEP-0277: added missing docstring 2014-02-23 23:30:35 +01:00
Goffi
fd22cf011d plugin text syntaxes: fixed cleaners encoding 2014-02-20 13:28:10 +01:00
Goffi
cf08f0127a plugin XEP-0277: encoding fix 2014-02-20 13:28:09 +01:00
souliane
7c29b8c566 plugin room_game, radiocol: RoomGame.send returns a Deferred. 2014-02-18 17:49:33 +01:00
souliane
daccb7c953 plugin groupblog: do not log error message when asking for the entries of a non existent node (e.g the contact hasn't posted any message yet) 2014-02-18 14:35:30 +01:00
souliane
24beb81688 misc: fix unnamed arguments in format strings 2014-02-17 14:58:26 +01:00
souliane
d5fb045f5b plugin text_syntaxes: html2text was breaking the long URLs 2014-02-13 12:29:14 +01:00
souliane
63bf55d69f plugin XEP_0277: fix encode/decode errors 2014-02-12 15:24:03 +01:00
souliane
a3e2beeeae plugin XEP_0277: check for XHTML namespace and decapsulate the content from the main div container 2014-02-12 15:23:15 +01:00
souliane
c2e4e9f8f9 plugin text_syntaxes: rstrip the conversion result to avoid new lines systematically added by converters (e.g. html2text do this) 2014-02-12 15:21:00 +01:00
souliane
ff81f76184 plugin groupblog, XEP-0071, XEP-0277, text_syntaxes: manage raw/rich/xhtml data for content/title:
Implementation should follow the following formal specification:

"title" and "content" data can be passed in raw, xhtml or rich format.
When we receive from a frontend a new/updated microblog item:

- keys "title" or "content" have to be escaped (disable HTML tags)
- keys "title_rich" or "content_rich" have to be converted from the current syntax to XHTML
- keys "title_xhtml" or "content_xhtml" have to be cleaned from unwanted XHTML content

Rules to deal with concurrent keys:

- existence of both  "*_xhtml" and "*_rich" keys must raise an exception
- existence of both raw and ("*_xhtml" or "*_rich") is OK

As the storage always need raw data, if it is not given by the user it can be
extracted from the "*_rich" or "*_xhtml" data (remove the XHTML tags).

When a frontend wants to edit a blog post that contains XHTML title or content,
the conversion is made from XHTML to the current user-defined syntax.

- plugin text_syntaxes: added "text" syntax (using lxml)
2014-02-05 16:36:51 +01:00
souliane
5aa76d7d23 plugin groupblog: added method getLastGroupBlogsAtom returns the Atom feed of blog posts 2014-01-22 17:10:28 +01:00
souliane
30dfdf1025 plugins room_games, radiocol, libervia: small changes like refactorization to ease the maintenance 2014-01-17 15:02:46 +01:00
souliane
4818da04fc plugin radiocol: sync data includes a "jump to time" info 2014-01-16 11:44:14 +01:00
souliane
8b700a6d48 plugins radiocol_tarot: do not process received messages for MUC users that are actually not playing the game + fix for testing purpose 2014-01-15 23:09:39 +01:00
souliane
9e6845472d plugins room_games, radiocol: better synchronization after a user joins a running game 2014-01-15 23:01:23 +01:00
Goffi
b1f91fe568 plugin Ad-Hoc D-Bus: first draft:
this plugin allow to easily use D-Bus with Ad-Hoc command. This first draft only allow to create a D-Bus remote for now.
2014-02-17 18:57:06 +01:00
Goffi
5d29ffbdda plugin XEP-0050: fixed UnknownGroupError management + "@ALL@" profile for status command 2014-02-13 18:50:56 +01:00
Goffi
2ca6efd8cc dates update 2014-02-04 18:32:49 +01:00
Goffi
aad6251058 core: security limit in menus 2014-02-04 18:32:39 +01:00
Goffi
c6aaaaa297 plugin XEP-0077, plugin XEP-0100, frontends: gateways have been entirely implemented in backend using the new refactored XMLUI and AdvancedListContainer. The now useless code has been removed from frontends. 2014-02-04 18:26:03 +01:00
Goffi
b3fb68cb63 core, frontends: XMLUI refactoring:
- XMLUI now use objects with 2 main classes: widgets (button, label, etc), and container which contain widgets according to a layout
    - widgets and containers classes are found through introspection, thereby it's really easy to add a new one
    - there is still the AddWidgetName helper, for example AddText('jid', 'test@example.net') will add a StringWidget with name "jid" and default value "test@example.net"
    - container can be inside other containers. changeContainer change the first parent container
2014-02-04 18:19:00 +01:00
Goffi
72fd99f679 plugin XEP-0045, primitivus: added MUC configuration 2014-02-04 18:06:12 +01:00
Goffi
8ee9e2529e plugin XEP-0055, Primitivus: Directory search dialogs are now entirely done in plugin XEP-0055, specific code in frontend is not needed anymore 2014-02-04 18:03:53 +01:00
Goffi
67df03f7bf core: XMLUI now use @property for session_id and submit 2014-02-04 18:02:40 +01:00
souliane
f2503f89ae plugins room games, XEP-0045: small fixes, improved docstrings 2014-01-10 18:07:36 +01:00