Commit graph

2,567 commits

Author SHA1 Message Date
Goffi
69faabb405 setup: minimal version of sat_tmp is 0.0.3 2018-04-04 08:45:09 +02:00
Goffi
9c9648016f core: replaced gtk3reactor by gireactor 2018-04-03 20:54:17 +02:00
Goffi
14c817fa2c setup, constant: use https address in APP_URL, and keep pypi NAME separated from constants 2018-04-03 09:04:55 +02:00
Goffi
b92101dabc setup: use constants to get name and version 2018-04-03 08:00:42 +02:00
Goffi
900a16f8ff setup: removed ez_setup.py 2018-04-02 19:48:50 +02:00
Goffi
80ef13612b core, setup: huge cleaning:
- moved directories from src and frontends/src to sat and sat_frontends, which is the recommanded naming convention
- move twisted directory to root
- removed all hacks from setup.py, and added missing dependencies, it is now clean
- use https URL for website in setup.py
- removed "Environment :: X11 Applications :: GTK", as wix is deprecated and removed
- renamed sat.sh to sat and fixed its installation
- added python_requires to specify Python version needed
- replaced glib2reactor which use deprecated code by gtk3reactor

sat can now be installed directly from virtualenv without using --system-site-packages anymore \o/
2018-04-02 19:44:50 +02:00
Goffi
4afd2ff26f plugin merge-request mercurial: keeps more chars for import name 2018-04-02 08:56:24 +02:00
Goffi
4f1fb28a63 plugin merge-request mercurial: accept space and period for import name sanitization 2018-04-02 08:49:20 +02:00
Goffi
b1b765fcc0 plugin merge-request mercurial: better name sanitization for import 2018-04-02 08:45:08 +02:00
Goffi
2b44df2294 jp (merge-request,common): fixed URIFinder when metadata are not needed:
new "meta_map" attribute which allows to select destination argument name, or to discard unused metadata.
2018-04-02 08:23:22 +02:00
Goffi
8e515c0be7 README: minor line addition 2018-04-01 20:55:43 +02:00
Goffi
d4511e8e3a jp (base): fixed URI's item with use_pubsub 2018-04-01 20:41:03 +02:00
Goffi
86a09b6c90 README: label to use for tickets and merge requests is specified 2018-04-01 20:17:00 +02:00
Goffi
e4c56da671 plugin uri finder, jp (merge-request): labels handling:
- a label can now be specified as metadata after specifing a "xmpp:" URI in doc (with « use "[label]" label" » after the URI)
- updated jp to handle new signature of URIFind
- jp (merge-request/set): labels can now be specified using --label
2018-04-01 20:17:00 +02:00
Goffi
a6aa637663 jp (merge-request): find URIs when --service and --node are not specified for get and import:
local dir is used for get, as repository is not in options.
2018-03-31 18:42:01 +02:00
Goffi
060d4a065f jp (base): added C.ITEM pubsub flag when --item is required 2018-03-31 18:40:54 +02:00
Goffi
f4a15b0ffb jp (merge-request/set): if service and node are not specified, URIFinder is now used + ask confirmation before publishing 2018-03-31 18:23:06 +02:00
Goffi
60eab27872 jp (base): new confirmOrQuit helper method to ask confirmation to user, and quit if he cancel 2018-03-31 18:21:56 +02:00
Goffi
c762d0cc31 README: specified URIs location for tickets and merge requests 2018-03-31 17:20:38 +02:00
Goffi
19155ef4d7 plugin uri finder: plugin to find URIs in well-known locations 2018-03-31 17:20:14 +02:00
Goffi
31c8a752bb jp: new argument pubsub_default can be used in Commands to replace default value in help string 2018-03-31 17:10:43 +02:00
Goffi
ec0c5104ed plugin merge-requests: fixed labels (they were using textbox instead of list) 2018-03-30 19:49:35 +02:00
Goffi
514f4e0285 jp (merge-request/import): added import command 2018-03-30 17:53:57 +02:00
Goffi
60043be6b4 plugin merge-requests, mercurial merge-requests: merge request import implementation 2018-03-30 17:53:11 +02:00
Goffi
2422d0a1d7 plugin XEP-0115: fixed caps initial check 2018-03-30 17:51:32 +02:00
Goffi
291127e677 jp (merge/get): "get" command first draft:
get allows to retrieve a merge request, to display it. By default it only display "id", "title" and "body" ; verbosity must be augmented to display more.
2018-03-29 09:09:33 +02:00
Goffi
5fbe44e849 jp (xmlui): added whitelist, read_only and values_only options:
- whitelist is set on XMLUI creation, it's the same as for other frontends
- read_only is set on XMLUI display, it indicates that input are not expected
- values_only is set on XMLUI display, it indicates that only values are to be displayed (it implies read_only)
2018-03-29 09:09:32 +02:00
Goffi
25e6a8748d frontends (xmlui): added whitelist argument:
when set whitelist indicate that only widgets (and their eventual labels) with names in this list are to be kept.
This option is mutually exclusive with ignore.
2018-03-29 09:03:19 +02:00
Goffi
d2dadbaf46 jp (base): add --max option:
when MULTI_ITEMS is set, --max options is automatically added, except if NO_MAX flag is set.
2018-03-29 08:59:38 +02:00
Goffi
b7e2de70d7 jp (base): fixed use_pubsub when pubsub_flags is not needed 2018-03-29 08:57:27 +02:00
Goffi
1c29b1cdc1 tools (common/data_objects): fixed Identity 2018-03-26 08:06:35 +02:00
Goffi
a9105242d0 core: added bare_jid and identities arguments to discoGetByFeatures:
- bare_jid indicate if we are looking for server implementation (True) of devices (False)
    - identities is an optional filter, only entities with this identities set will be kept
2018-03-26 08:01:06 +02:00
Goffi
afb4dcd6bb plugin XEP-0234: fixed regex import 2018-03-25 20:51:02 +02:00
Goffi
b9e3707412 core: new discoFindFeatures method which return all server services/roster entities implementing a set of features. 2018-03-24 10:46:09 +01:00
Goffi
7ffb8efb92 core (disco), plugin XEP-0115: client use + capabilities hash improvment:
- modified a couple of method from memory to use client instead of profile
- XEP-0115: don't use unique hash for all clients anymore, as disco can be different between clients/components, and even between clients (different identity for instance).
    hash is now generated per client on each new session.
2018-03-24 10:44:37 +01:00
Goffi
6f8834f9da jp: pubsub options refactoring:
There is now only "use_pubsub", and specification are set using "pubsub_flags" argument when instantiating CommandBase.
Options are more Python Zen compliant by using explicit arguments for item, draft, url instead of trying to guess with magic keyword and type detection.
Pubsub node and item are now always using respecively "-n" and "-i" even when required, this way shell history can be used to change command more easily, and it's globally less confusing for user.
if --pubsub-url is used, elements can be overwritten with individual option (e.g. change item id with --item).
New "use_draft" argument in CommandBase, to re-use current draft or open a file path as draft.
Item can now be specified when using a draft. If it already exists, its content will be added to current draft (with a separator), to avoid loosing data.
common.BaseEdit.getItemPath could be simplified thanks to those changes.
Pubsub URI handling has been moved to base.py.
2018-03-21 19:13:22 +01:00
Goffi
03e9e2b281 frontends (tools/misc): new FlagsHandler class, a simple class to help handling option flags 2018-03-21 19:07:06 +01:00
Goffi
f1b9ef2c21 jp (output/template): fixed template output (media_dir was missing) 2018-03-21 19:07:00 +01:00
Goffi
a1f953f825 component file sharing: changed pubsub identity:
pubsub service disco identity has been changed to non standard "virtual" type, to avoid it to be used as main pubsub service by the client.
2018-03-18 11:26:01 +01:00
Goffi
76f39ca0c4 component file sharing: comments metadata:
new <comments> element is added to file metadata, it contains the URL to the comments virtual node and the count of comments (this way client knows if it make sense to request comments or not).
Fixed triggers in plugin XEP-0264 (return value was missing).
New trigger in plugin XEP-0329 to allow component to add metadata (used here for comments url).
2018-03-16 18:43:11 +01:00
Goffi
07fa89be84 component file sharing: comments handling first draft:
comments use a minimal pubsub service which create virtual nodes for each files. A pubsub request to org.salut-a-toi.file_comments/[FILE_ID] allow to handle comments in classic way.
Permissions are the same as for files (i.e. if an entity can see a file, she can comment it).
2018-03-16 17:06:35 +01:00
Goffi
97f19b2e52 core (memory, sqlite): added fileUpdate method to update "extra" and "access" avoiding race condition 2018-03-16 17:03:46 +01:00
Goffi
50a7be4fe4 core: use C.bool to detect value of "handler" field in PLUGIN_INFO 2018-03-16 17:00:57 +01:00
Goffi
3b737b6fec core (constants): accept "yes" as a True value in bool() 2018-03-16 17:00:09 +01:00
Goffi
5fc249a075 jp (common): assure nosplitright in default commands for edition with vim 2018-03-16 16:59:16 +01:00
Goffi
c6cac9d6bd component file sharing, plugin XEP-0231: thumbnail are now returned by component using Bits of Binary:
thumbnails are saved in common cache, and sent blindly on request.
There is no access check for thumbnails yet, which is a security/privacy issue, but mitigated by the fact that content id must be known to retrieve the file.
Proper access check is planed.
2018-03-14 08:14:32 +01:00
Goffi
2560c9d3f2 plugin XEP-0264: handle truncated files 2018-03-14 08:11:20 +01:00
Goffi
2e18724e7b plugin XEP-0329: fixed extra key serialisation before sending to bridge 2018-03-14 08:10:31 +01:00
Goffi
efd3c8d0b4 component file sharing: fixed hash handling (key has been renamed to "file_hash") 2018-03-14 08:08:42 +01:00
Goffi
d4ed57dadc core (memory): use bare jid for owner in setFiles:
this makes files unusable for MUCs private conversations, but it doesn't make much sense to use it in this case.
2018-03-14 08:07:24 +01:00