Commit graph

2,954 commits

Author SHA1 Message Date
Goffi
deb3358a58 doc: minor fixes + use ".pot" extension instead of ".po" for template in README4TRANSLATORS 2019-05-26 22:21:56 +02:00
Goffi
d117d5c98c tools (email): moved email code to common so it can be used by frontends 2019-05-26 22:20:33 +02:00
Goffi
0edb94b0a2 tools (common/template): fixed theme parsing when there is no "/" in parenthesis 2019-05-25 15:13:35 +02:00
Goffi
94f149bce6 tools (email): fixed bad default value while reading config 2019-05-14 20:16:45 +02:00
Goffi
b9dc39aa86 we are in dev version again 2019-05-14 19:23:05 +02:00
Goffi
6a09ad4d4d Added tag 0.7.0b1 for changeset c6464685fcbb 2019-05-05 20:26:38 +02:00
Goffi
3a42175109 0.7.0b1 release 2019-05-05 20:25:50 +02:00
Goffi
a885a87266 changelog: added setup.py and VERSION 2019-05-05 20:20:46 +02:00
Goffi
31a16d1fab doc: documentation first draft:
this patch starts the local documentation, existing documentation will be imported from wiki/other places to this folder and updated.
This doc is using reStructuredText format and will be generated with Sphinx.
2019-02-22 18:58:59 +01:00
Goffi
d694599d69 jp (blog/edit): fixed --last-item after recent change in defaut value of --item 2019-05-05 18:50:38 +02:00
Goffi
9a50da7f07 jp (blog/set): fixed missing current_syntax 2019-05-05 18:50:35 +02:00
Goffi
987d808896 jp (blog): fixed the deserialisation issue when using template output 2019-05-05 18:50:32 +02:00
Goffi
2f30424c6f tools (common/data_objects): added a "deserialise" argument to BlogItem:
BlogItem is doing deserialisation itself, which is not clean (it should be done at bridge level), and which is causing trouble in jp which doesn't expect serialisation.

As a workaround, the "deserialise" argument has been added for now (default to True), until deserialisation is properly managed in bridge.
2019-05-05 18:50:30 +02:00
Goffi
ff1a025650 plugin events: fixed invitation + set name and thumb_url from event element 2019-05-04 00:06:41 +02:00
Goffi
56c14723df plugin list interest: initialise extra with an empty dict if not set in registerPubsub 2019-05-04 00:05:11 +02:00
Goffi
4f9f003075 jp (xmlui manager): basic handling of multi-lines text in TextBoxWidget 2019-05-03 20:49:27 +02:00
Goffi
7d8d9c8ccb tools (xml_tools): split new lines for multi-lines text in XMLUIResult2DataFormResult to be correctly handled in data form 2019-05-03 20:48:19 +02:00
Goffi
432afa025e plugin XEP-0329: correctly handle error if something is wrong when getting file from component. 2019-05-03 20:46:59 +02:00
Goffi
39d941ddcf plugin list interests: add "namespace" in serialised data 2019-05-03 20:44:55 +02:00
Goffi
bd54aec282 plugin events: register namespace using "event" short name 2019-05-03 20:42:21 +02:00
Goffi
b2e22c6af8 plugin file sharing management: filter out empty values in allowed_jids 2019-05-03 20:41:28 +02:00
Goffi
8a513c4829 plugin list of interest: added an interestsList bridge method + handle thumb_url 2019-05-03 13:06:47 +02:00
Goffi
bf9284cf06 jp (file/invite): added a --thumbnail argument 2019-05-03 13:05:47 +02:00
Goffi
d3e86f4ba2 plugins invitation*, events: added an extra parameter and use it to keep a thumnail URL 2019-05-03 13:05:01 +02:00
Goffi
2dfae32542 plugin XEP-0313: fixed archive retrieval on connection:
last stanza-id is now saved for every message received, and not only retrieved from local message history anymore.
If we are the sender of a message from archive, it is only added to local history, else it is injected to normal workflow.
2019-05-03 13:00:08 +02:00
Goffi
1dd3518943 plugin comp file sharing: file sharing management first draft:
the new "component file sharing management" plugin add ad-hoc commands to changes permission of one or several shared files, delete one or more files, or regenerate thumbnails.
This is a temporary plugin to make file sharing through a component usable with other entities, but should be removed (at least permission management and file deletion) in the future if we move on a pubsub based solution.
2019-04-28 09:00:51 +02:00
Goffi
80da9a6591 core (memory, memory/sqlite): implemented fileDelete 2019-04-28 08:55:13 +02:00
Goffi
a3c67e1072 plugins (jingle) file transfer: use initial "from" attribute as local jid instead of client.jid:
while client.jid is fine in a client context, for components it's not the right jid to use: it is the jid of the component itself while the file transfer/jingle session entity may be established with this jid + a local part (e.g. if client is files.example.net, session may be established with louise@files.example.net, in which case "from" is louise@files.example.net, while client.jid will be files.example.net).

As a consequence, using client.jid was causing trouble with components.
This patch fixes it for jingle and plugins linked to file transfer by keeping a "local_jid" variable in the session, where the jid from the original "from" attribute is used.
2019-04-28 08:55:13 +02:00
Goffi
cad0d4b0e2 core (memory): raise PermissionError directly instead of using failureFailure, as it could not be catched correctly in every case. 2019-04-28 08:55:13 +02:00
Goffi
74bc166b88 plugin XEP-0384: wait for client to be ready if session is missing when onNewDevices is called 2019-04-28 08:55:07 +02:00
Goffi
a46dda1e12 memory: minor style change 2019-04-26 11:57:26 +02:00
Goffi
bcba2ab9ae plugin XEP-0329: use local part of jid for components:
when used by a component, local part can now be used to specify owner of the file. Local part is escaped using XEP-0106, then:
- if the unescaped text contain a "@", it is used as a jid
- else, a jid is build by using this text and host of the component
2019-04-26 11:57:26 +02:00
Goffi
ae686b6368 plugin XEP-0106: jid escaping implementation 2019-04-26 11:57:26 +02:00
Goffi
007575d62b plugin XEP-0050: make plugin usable with components + new adHocError method to easily raise error when needed 2019-04-26 11:57:26 +02:00
Goffi
75fc5d3453 plugin XEP-0166: fixed missing key in warning log 2019-04-26 11:57:26 +02:00
Goffi
98098105e7 memory (sqlite): minor log improvment 2019-04-26 11:57:26 +02:00
Goffi
621c6b3ffa memory (sqlite): fixed fileUpdate when original value is not set (NULL) 2019-04-26 11:57:26 +02:00
Goffi
fae128d8fe plugin invitation file: wrong plugin had been uploaded:
this patch remove the test pluging erroneously uploaded, and add the right one instead
2019-04-26 11:57:26 +02:00
Goffi
97563c3f25 jp (file/share): added invite command to invite an entity to a file sharing repository 2019-04-14 08:21:51 +02:00
Goffi
c3fcfb3d64 core: fixed component connexion:
presence announcement has been moved to startConnection, but component don't have presence. This patch fixes it by moving presence announcement to clients only.
2019-04-14 08:21:51 +02:00
Goffi
553ebe5ab8 core: added getNamespace method to retrieve a namespace from short name. 2019-04-14 08:21:51 +02:00
Goffi
ab861ef91c plugins sharing invitation, invitation, list of interest: handle invitation to a file sharing repository 2019-04-14 08:21:51 +02:00
Goffi
29b2a7cb11 plugin events: refactored invitation and personal lists logic:
- invitation logic has been moved to a new generic "plugin_exp_invitation" plugin
- plugin_misc_invitations has be rename "plugin_exp_email_invitation" to avoid confusion
- personal event list has be refactored to use a new experimental "list of interest", which regroup all interestings items, events or other ones
2019-04-14 08:21:51 +02:00
Goffi
1ccb54e571 tools (sat_defer), plugin XEP-0060: added a function "stanza2NotFound" to convert item-not-found StanzaError to exceptions.NotFound in an errback 2019-04-14 08:21:51 +02:00
Goffi
d85f1b364f jp, plugin merge-requests: used u'' as default for item id in pubsub arguments + fixed some required arguments:
u"" is now used as defaut item id instead of node, as it needs to be serialised anyway. This is temporary solution, as empty string can be used for item id (not forbidden by XEP-0060), but for now this is not handled correctly in jp/SàT (see https://bugs.goffi.org/bugs/view/289). Correct solution will probably need to use a special key in extra to mark empty string in id.
Added/removed some required values for node or item when it made sense.
2019-04-14 08:21:51 +02:00
Goffi
5e2426c065 core (memory), plugin XEP-0329, plugin invitation: minor style improvments 2019-04-14 08:21:51 +02:00
Goffi
6b83ef5c51 plugins: removed useless execute permission 2019-04-14 08:21:51 +02:00
Goffi
bc061ee885 template (filters): set locale when using "date_fmt" 2019-04-14 08:21:51 +02:00
Goffi
e1ff10bf77 template (i18n): activate ext.i18n.trimmed policy, to have clean translation strings. Set minimal jinja2 version to 2.10 2019-04-14 08:21:51 +02:00
Goffi
5dda9f6857 jp (common): publish is now a boolean 2019-04-10 22:15:29 +02:00