Commit graph libervia-backend/src/plugins
Author SHA1 Message Date
Goffi
60b8c8fa73 plugin pipe/stream, file transfert: refactoring and improvments:
this is a big patch as things had to be changed at the same time.

- changed methods using profile argument to use client instead
- move SatFile in a new tools.stream module, has it should be part of core, not a plugin
- new IStreamProducer interface, to handler starting a pull producer
- new FileStreamObject which create a stream producer/consumer from a SatFile
- plugin pipe is no more using unix named pipe, as it complicate the thing,
  special care need to be taken to not block, and it's generally not necessary.
  Instead a socket is now used, so the plugin has been renomed to jingle stream.
- bad connection/error should be better handler in jingle stream plugin, and code should not block anymore
- jp pipe commands have been updated accordingly

fix bug 237
2018-02-08 00:37:42 +01:00
Goffi
ece10e8cd2 plugin NAT-port: raise MappingError if something get wrong during "addportmapping" + log unexpected errors (i.e. everything else than MappingError) 2018-02-01 07:24:34 +01:00
Goffi
aec189c087 plugin XEP-0166: added errback to terminate, which only logs issues 2018-02-01 07:21:41 +01:00
Goffi
cfcc673826 plugin forums: first draft:
this plugin handle forums hierarchy, where forums link to topics which themselves link to blog nodes.
2018-01-30 08:17:08 +01:00
Goffi
387c10cc0d dates update 2018-01-26 11:14:13 +01:00
Goffi
f857a86740 plugin blog import dotclear: use a smaller and lower case prefix to generate ids 2018-01-24 09:10:12 +01:00
Goffi
80efb4b121 plugin XEP-0277: use shortuuid instead of uuid + use item's XMPP URI for atom ID 2018-01-22 22:00:46 +01:00
Goffi
c09a5feb3c plugin blog static: added background parameter, to set an image 2018-01-22 08:36:36 +01:00
Goffi
d4cfd510c8 plugin XEP-0277: microblog namespace is now registered 2018-01-19 17:40:06 +01:00
Goffi
e963a0077a plugin merge-requests: fixed "set" method 2018-01-13 10:12:15 +01:00
Goffi
78b16b9bff plugins tickets, merge-requests: fixed call of prepareBridgeSet 2018-01-13 10:03:32 +01:00
Goffi
3e76e826d0 plugins schema, merge_requests, tickets*: factorisation
Dode common in plugins using schema have been factorised in pubsub schema plugin, and filters users in tickets handling have been renamed in a more generic way and put there too.
"reporter*" fields in tickets have been renamed to "author*" as it is a more generic term which can be used elsewhere.
The use of new utils.partial function make easy the creation of simple plugins using schema.
2018-01-12 15:58:54 +01:00
Goffi
a22c1a7fd8 plugin XEP-0045: new mucGetService bridge method to retrieve MUC service of the server. 2018-01-05 12:59:52 +01:00
Goffi
cf4ba7b9e4 plugin identity: if we get an empty avatar, don't feel avatar_basename and remove avatar key. 2018-01-05 12:58:54 +01:00
Goffi
a9e8a79445 plugin identity: return resource for MUC room occupants' nicks + added avatar and avatar_basename. 2018-01-03 00:20:21 +01:00
Goffi
284b2e2ca7 plugin XEP-0054: return always False in isRoom is plugin XEP-0045 is not available + raise NotFound if avatar is requested for a MUC room (not the occupants, the room itself) 2018-01-03 00:18:31 +01:00
Goffi
9e243b3a8a plugin XEP-0045: added mucNickGet to retrieve our nickname in a MUC room 2018-01-03 00:16:23 +01:00
Goffi
adca9c455d plugin XEP-0060: added an config option to set pubsub service
"pubsub_service" can now be used in [DEFAULT] section. If not found or invalid, first pubsub service found will be used

fix 216
2017-12-12 01:07:25 +01:00
Goffi
6de330925f plugin merge requests Mercurial: first draft:
this plugin handle Mercurial VCS. It send merge requests using export command, and parse it to retrieve individual patches and metadata.
2017-11-30 20:49:20 +01:00
Goffi
104b34b6c4 plugin merge requests: first draft:
this plugin allows to handle merge requests (i.e. requests to include a contribution in a project) by extendings tickets management.
This plugin is made to be generic, independent from end user tools and from the kind of project where the contribution is requested to be merged.
2017-11-30 20:44:25 +01:00
Goffi
6d1d17e0cc plugin tickets: handle "update" flag + various improvments:
- ticketsSet renamed to ticketSet as only one ticket is set at a time
- dateFilter is not crashing anymore if value can't be parsed: the value is then return unmodified
- form_ns can be specified in get, so the method can be used by other plugins
- new "update" flag: if set in extra, an previous ticket of the same id will be retrieved, and used as a basis for an update
2017-11-30 20:34:41 +01:00
Goffi
fbd9737b9a plugin XEP-0060: added node watching methods to bridge:
new methods psNodeWatchAdd and psNodeWatchRemove allows to set a watch for the time of the session on one node, to have a signal called when something change on this node.
This signal (psEventRaw) send raw data (raw XML), in opposition to psEvent which is there to send high level data (e.g. parsed blog data).
Those method are primarely there to let frontends manage local cache for pubsub nodes.
2017-11-19 16:51:39 +01:00
Goffi
da077485d2 core: added a mechanism to associate short names to namespaces:
- new internal registerNamespace can be used by a plugin to associate a short name to a namespace
- new NamespacesGet bridge method retrieve those associations
2017-11-19 16:46:07 +01:00
Goffi
4df7673f64 plugin XEP-0060: added "options" argument to psSubscribe, and return subscription id if present 2017-11-19 16:41:59 +01:00
Goffi
3042d42bc4 plugin XML Log: Monkey patch is done on the whole XmlStream class, making it available as soon as the stream start + long received message are sent once fully parsed (not cut anymore) 2017-11-18 18:49:57 +01:00
Goffi
a014e6a873 plugins blog import, tickets import, XEP-0277: fixed call to getCommentsService (it is now returning a Deferred) 2017-11-16 07:31:00 +01:00
Goffi
a6e55a6c56 plugin import: fixed deserialisation of pubsub service 2017-11-15 21:15:42 +01:00
Goffi
5522aed007 plugin tickets: specify parent service when using getCommentsService + fill reporter_jid is missing (will be discarded later if not in the schema) 2017-11-15 08:58:38 +01:00
Goffi
bf91404351 plugin XEP-0277: better getCommentsService:
getCommentsService now checks if the parent service is on a third party server and if it's PEP, and return the service to use accordingly.
2017-11-15 08:57:19 +01:00
Goffi
7de0ba6c64 plugin XEP-0060: use new findServiceEntity to get default pubsub service 2017-11-15 08:55:47 +01:00
Goffi
774d9a37a4 plugin tickets: fill reporter field when it is not already filled 2017-11-11 18:39:26 +01:00
Goffi
b6a97ced81 plugin identity: fixed jid.userhostJID call + capitalize user when jid is used. 2017-11-11 18:35:28 +01:00
Goffi
b3dcb3a490 plugin schema: prepend a "publisher" field after "id" in getDataFormItems with published given by PubSub service 2017-11-11 18:34:21 +01:00
Goffi
a45a20ca34 XEP-0060: fixed bad attribute in getItems 2017-11-08 07:47:01 +01:00
Goffi
f3d19392ea plugin schema: separate lines of text-multi in different values as requested by XEP-0004 2017-11-05 20:34:51 +01:00
Goffi
3b9659e52e plugin tickets: added ticketsSet and ticketsSchemaGet methods:
those methods are high level methods specialised for tickets.

ticketsSet will use default tickets node if node is not set, set "created" and "updated" fields, create comments node if the ticket is new, and associate it with "comments_uri" field.

ticketsSchemaGet is like getUISchema with node defaulting to tickets default node.
2017-11-05 15:36:06 +01:00
Goffi
06d5346714 plugin XEP-0277: minor id generation change 2017-11-04 22:10:01 +01:00
Goffi
f5f25e8ab5 misc: date update (yes it's a bit late :p ) 2017-11-03 14:31:42 +01:00
Goffi
a5f28ef7dd tmp: removed sat.tmp hierarchy and fixed references to it as it is now an independant sat_tmp repository 2017-11-03 14:19:10 +01:00
Goffi
a68772cdeb plugin XEP-0050: renamed "requestCommandsList" method to "list" + added a run command + fixes:
- XMLUI cancellation is fixed
- when called from bridge, "list" (adHocList) command doesn't prepend instructions
2017-10-31 23:11:13 +01:00
Goffi
6e8375cda5 plugin tickets: high level tickets handling, first draft:
this plugin use plugin schema to handle tickets, and filter well known fields like created, updated and labels.
2017-10-27 18:24:35 +02:00
Goffi
ada8d4756e plugin tickets import bugzilla: fixed parsing of "created" and "updated" fields 2017-10-27 18:08:53 +02:00
Goffi
0a33ab2d1d core (XMLUI): filters can now be used when converting data form to XMLUI:
they can be used to modify created widgets, this is specially useful to customise well known field.
2017-10-27 18:06:58 +02:00
Goffi
55a5b603fd plugins tickets import, jp (ticket/import): implemented mapping:
- mapping is an option allowing do map imported field to a specific field in the newly created item
- importers can now use complexe data types in options using JSON
2017-10-27 17:58:05 +02:00
Goffi
baaa4b1419 plugin pubsub schema: allow any data_form schema:
the schema is actually the schema needed for the items, so it should not in pubsub schema namespace.
2017-10-27 17:54:00 +02:00
Goffi
414665c76a plugin tickets import: create comments nodes with open access/publishing 2017-10-27 08:35:22 +02:00
Goffi
08a14fa4ac plugins import, tickets import, bugzilla import: comments handling:
- comments are put in "comments" key in import data, it's a list of microblog data
- in resulting item, the comments uri is put in comments_uri field
- (plugin import) root_service and root_node are kept in session
- (plugin ticket) reporter name is now in "reporter" key instead of "reporter_name"
- (plugin bugizlla): if not reporter name is found, first part of email address is used
2017-10-20 08:48:41 +02:00
Goffi
363ee1db88 plugin XEP-0060: added createIfNewNode method which doesn't fail in case of conflict. 2017-10-20 08:44:09 +02:00
Goffi
a8f192a2e4 plugin schema: when publishing a schema, check that values of list are allowed, else use default value 2017-10-20 08:40:54 +02:00
Goffi
25a66ec8d2 plugin schema, core(xmlui): deep copy base form when reused to avoid accidental modification 2017-10-20 08:39:05 +02:00