Commit graph libervia-backend/src/plugins
Author SHA1 Message Date
Geoffrey POUZET
7eb6d363d9 plugin XEP-0070: change message popup to be more user-friendly 2016-07-19 21:25:22 +02:00
Goffi
90f8473b99 plugin lang detect: added a parameter to (de)activate the detection 2016-07-17 19:43:30 +02:00
Goffi
cc160e03d7 plugin XEP-0085, quick_frontends, primitivus: chat states are working again 2016-07-17 16:47:33 +02:00
Geoffrey POUZET
9ed4c1787e plugin XEP-0070: implementation of XEP-0070 (verifying HTTP request via XMPP) 2016-07-11 20:01:05 +02:00
Goffi
93f2d8d948 plugin XEP_0249: fixed bad use of namespace in addElement 2016-07-10 12:26:42 +02:00
Goffi
79f1179723 plugin XEP-0045: fixed typo in text commands 2016-07-02 20:55:31 +02:00
Goffi
286ee2a5e2 plugin XEP-0045: added /list text command:
/list display a basic (for now) listing of available rooms in current or specified MUC service
2016-07-01 00:00:36 +02:00
Goffi
3b49db2892 plugin XEP-0045: various fixes/improvments:
- use self.txt_cmds instead of self.host.plugins["XEP-0045"]
    - nick and options in join have now default values
    - directly raise ConflictError when room is already joined instead of using defer.fail
    - removed self.host.getClient where it's now useless because client is used instead of profile
2016-07-01 00:00:23 +02:00
Goffi
71a2fe4599 plugin xep-0045: ask for password when getting a "not-allowed" error 2016-07-01 00:00:09 +02:00
Goffi
a0fb3b451f xep-0045: ignore non standard presence received between own presence and room subject 2016-06-29 13:46:14 +02:00
Goffi
96afcb28d3 plugin XEP-0054: fixed getCard calls 2016-06-28 18:27:02 +02:00
Goffi
8b425a2e44 plugin XEP-0045: fixed calls to join, nick, kick, ban and affiliate 2016-06-28 18:26:21 +02:00
Goffi
04515e5013 plugin XEP-0045, quick_frontend + primitivus (chat): cleaning of XEP-0045 (first pass):
- bridge methods/signals now all start with "muc" to follow new convention
    - internal method use client instead of profile to follow new convention
    - removed excetpions from plugin XEP-0045 in favor of core.exceptions, NotReady added
    - cleaned/simplified several part of the code. checkClient removed as it is not needed anymore
    - self.clients map removed, muc data are now stored directly in client
    - getRoomEntityNick and getRoomNicksOfUsers are removed as they don't look sane.
        /!\ This break all room game plugins for the moment
    - use of uuid4 instead of uuid1 for getUniqueName, as host ID and current time are used for uuid1
2016-06-27 21:45:11 +02:00
Goffi
a28bb7be8f merged main branch 2016-06-24 22:41:28 +02:00
Goffi
d3e2bef0cd plugin exp_lang_detect: language detection plugin, first draft
This plugin try to autodetect outgoing and ingoing messages language when it is not specified by sender
2016-06-20 18:44:27 +02:00
Goffi
b3c7a45ba5 plugin XEP-0245: implementation of XEP-0245 /me syntax 2016-06-20 18:42:00 +02:00
Goffi
a7de473107 backend, frontends: message refactoring (huge commit):
/!\ several features are temporarily disabled, like notifications in frontends

next step in refactoring, with the following changes:
    - jp: updated jp message to follow changes in backend/bridge
    - jp: added --lang, --subject, --subject_lang, and --type options to jp message + fixed unicode handling for jid
    - quick_frontend (QuickApp, QuickChat):
        - follow backend changes
        - refactored chat, message are now handled in OrderedDict and uid are kept so they can be updated
        - Message and Occupant classes handle metadata, so frontend just have to display them
    - Primitivus (Chat):
        - follow backend/QuickFrontend changes
        - info & standard messages are handled in the same MessageWidget class
        - improved/simplified handling of messages, removed update() method
        - user joined/left messages are merged when next to each other
        - a separator is shown when message is received while widget is out of focus, so user can quickly see the new messages
        - affiliation/role are shown (in a basic way for now) in occupants panel
        - removed "/me" messages handling, as it will be done by a backend plugin
        - message language is displayed when available (only one language per message for now)
        - fixed :history and :search commands
    - core (constants): new constants for messages type, XML namespace, entity type
    - core: *Message methods renamed to follow new code sytle (e.g. sendMessageToBridge => messageSendToBridge)
    - core (messages handling): fixed handling of language
    - core (messages handling): mes_data['from'] and ['to'] are now jid.JID
    - core (core.xmpp): reorganised message methods, added getNick() method to client.roster
    - plugin text commands: fixed plugin and adapted to new messages behaviour. client is now used in arguments instead of profile
    - plugins: added information for cancellation reason in CancelError calls
    - plugin XEP-0045: various improvments, but this plugin still need work:
        - trigger is used to avoid message already handled by the plugin to be handled a second time
        - changed the way to handle history, the last message from DB is checked and we request only messages since this one, in seconds (thanks Poezio folks :))
        - subject reception is waited before sending the roomJoined signal, this way we are sure that everything including history is ready
        - cmd_* method now follow the new convention with client instead of profile
        - roomUserJoined and roomUserLeft messages are removed, the events are now handled with info message with a "ROOM_USER_JOINED" info subtype
    - probably other forgotten stuffs :p
2016-06-20 18:41:53 +02:00
Goffi
f12803fa65 backend, frontend: messages refactoring (huge commit, not finished):
/!\ database schema has been modified, do a backup before updating

    message have been refactored, here are the main changes:

    - languages are now handled
    - all messages have an uid (internal to SàT)
    - message updating is anticipated
    - subject is now first class
    - new naming scheme is used newMessage => messageNew, getHistory => historyGet, sendMessage => messageSend
    - minimal compatibility refactoring in quick_frontend/Primitivus, better refactoring should follow
    - threads handling
    - delayed messages are saved into history
    - info messages may also be saved in history (e.g. to keep track of people joining/leaving a room)
    - duplicate messages should be avoided
    - historyGet return messages in right order, no need to sort again
    - plugins have been updated to follow new features, some of them need to be reworked (e.g. OTR)
    - XEP-0203 (Delayed Delivery) is now fully handled in core, the plugin just handle disco and creation of a delay element
    - /!\ jp and Libervia are currently broken, as some features of Primitivus

    It has been put in one huge commit to avoid breaking messaging between changes.
    This is the main part of message refactoring, other commits will follow to take profit of the new features/behaviour.
2016-05-24 22:11:04 +02:00
Goffi
06663b9571 core: removed pyfeed and xe dependencies:
pyfeed and xe where still used only for date format handling, and there is already dateutil which is a dependency of Wokkel.
    Furthermore pyfeed and xe are still not on pypi, causing troubles for installation with pip
2016-04-17 17:08:12 +02:00
Goffi
6bbcbaf522 use of /usr/bin/env instead of /usr/bin/python in shebang 2016-04-17 14:45:26 +02:00
souliane
edb31e2d74 plugin adhoc_dbus, jp (cmd/adhoc): fixes adHocDBusAddAuto when no bus is found
fix bug 134
2016-04-17 13:37:40 +02:00
Goffi
2d1d286be2 core (tools): moved common to a separate package, and put data method in a data_format module 2016-03-22 22:46:04 +01:00
souliane
30e4e3559f plugin misc_account: fixes two bugs introduced by revision 1907 (0b748ad46ede):
- the email sent to the user was not displaying its his/her JID
    - creating an account from an external JID was not returning a bool
2016-03-21 17:00:39 +01:00
souliane
a336975a7a plugin XEP-0277, test: set keys of data dict as unicode + fix the tests 2016-03-18 08:58:22 +01:00
souliane
cdff2852b4 plugin room_game: decrease the level of two logging messages from warning to info 2016-03-11 16:38:23 +01:00
souliane
ba1e8079ed plugin misc account: separate profile creation and sending emails, so we can wait and send the emails at the right time (when we know that no error occured) 2016-03-11 12:31:33 +01:00
Goffi
27cd8412d5 plugin XEP-0060: fixed traceback if service was None 2016-03-10 17:50:17 +01:00
Goffi
5857a69546 plugin misc ip: changed URL of GET_IP_PAGE for the new one on salut-a-toi.org 2016-04-26 19:59:28 +02:00
Goffi
faef205761 plugin misc ip: fixed exception when a web error happen while retrieving IP from external website 2016-04-26 19:04:59 +02:00
Goffi
c4ac825c8f plugin XEP-0060: service, node and uri are added to metadata when doing a getItems 2016-03-09 16:59:29 +01:00
Goffi
3890a108f4 plugin XEP-0277: removed mbGetAtom which has not reason to be in the backend, as it is highly dependant of (web) frontend elements. The code will be moved to Libervia:
/!\ this break Libervia static blog temporarily, the time to commit the changes
2016-03-09 14:33:54 +01:00
Goffi
edeaa0f9bc plugin misc account: fixed handling of None/empty values in sendEmails.sendEmail 2016-03-09 12:54:26 +01:00
souliane
7ca5b00183 plugin XEP-0096: add missing dependency to FILE plugin 2016-03-09 12:08:31 +01:00
souliane
f445c844c2 plugin misc_account: fixes sending email (twisted.mail.smtp.sendmail doesn't want unicode) 2016-03-09 11:52:18 +01:00
Goffi
e45ceec338 plugin account: fixed use of {domain} instead of hardcoded libervia.org for welcoming e-mail. 2016-03-09 11:17:32 +01:00
souliane
a6f9cd5bfb plugin misc_account: fixes handling of deprecater parameter "admin_email" 2016-03-07 16:20:41 +01:00
Goffi
ed2219df8f plugin XEP-0045: overriden availableReceived method of MUCClient to work around a bug in Wokkel (affiliation and role are not set). TODO: propose a patch upstream 2016-03-07 15:48:11 +01:00
Goffi
a99d593a35 plugin XEP-0045: fixed feedback for /kick /ban and /afficiliate commands which should not be public 2016-03-07 13:50:57 +01:00
Goffi
e56883c613 plugin text commands: fixed log in genericErrback which was raising an exception when something than StanzaError was received 2016-03-07 13:49:13 +01:00
souliane
c24537407b plugin XEP-0363: fixes a forgotten attribute update 2016-03-04 10:00:23 +01:00
Goffi
b28dcdbfb3 plugin text syntaxes: added 'poster' and 'controls' in allowed attributes for cleanXHTML 2016-03-01 16:36:16 +01:00
Goffi
893aa7a595 plugin XEP-0277: service can be None in mbGet, resulting in a request on default pubsub service of profile (i.e. profile's PEP) 2016-03-01 01:47:32 +01:00
Goffi
735db1b94a plugin account: modifications in welcoming email:
- removed "it misses some features and it's not stable enough to be used for any serious purpose." as we are being more and more close to general audience version
    - removed the reference to http://salut-a-toi.org/faq.html#certificate as we have no more certificate warning since the move to let's encrypt on the demo server
2016-02-27 14:55:23 +01:00
Goffi
63c5083839 plugin account: email sending improvments:
the following new options are handled:
        - email_sender_domain (default None)
        - email_port (default 25)
        - email_username (defaut None)
        - email_password (default None)
        - email_starttls true to force starttls (default false)
        - email_auth true to require authentication (default false)
    in addition, admin_email has been deprecated in favor of email_admins_list which can handle several addresses
2016-02-27 14:49:20 +01:00
Goffi
413af63280 plugin XEP-0060: fixed bad xmpp: URI generation in getNodeURI 2016-02-25 16:21:17 +01:00
Goffi
c92ce5da75 plugin blog import dokuwiki: fixed bad use of MissingModule and unmodified docstring 2016-02-25 16:05:31 +01:00
Goffi
69df5fc49c plugin blog import: mb_data handle unicode only, so comments_service must be a unicode and not a JID 2016-02-24 16:11:36 +01:00
souliane
01f851c9f7 plugin misc_upload: fixes things that have been forgotten after a refactoring 2016-02-23 15:02:03 +01:00
souliane
e25f9def1b plugin XEP-0277: add a forgotten string to JID conversion 2016-02-22 14:33:47 +01:00
Goffi
bd971186de plugin text syntaxes: fixed defaut syntax handling 2016-02-18 15:41:47 +01:00