Commit graph libervia-backend/frontends/src
Author SHA1 Message Date
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
d4511e8e3a jp (base): fixed URI's item with use_pubsub 2018-04-01 20:41:03 +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
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
514f4e0285 jp (merge-request/import): added import command 2018-03-30 17:53:57 +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
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
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
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
5fc249a075 jp (common): assure nosplitright in default commands for edition with vim 2018-03-16 16:59:16 +01:00
Goffi
d51dc5b2eb jp (file/send): --name can now be specified 2018-03-14 07:57:04 +01:00
Goffi
ac1740d235 jp (file): file sharing + improvments:
- file sending now handle --path and --namespace (used to specify how to share a file)
- implemented file request, a file must be identified by it's name or hash, using --path when possible
- added share subcommands
- share/list allows to list file shared by an entity at a specific path
- share/path allows one to share a local path privatly (only accessible by its bare jid), publicly or to a whitelist of jids
2018-02-28 18:28:39 +01:00
Goffi
976da08f5d jp (common/table): a column can be hidden + fix for empty tables
- avoid crash when table is empty
- a column can now be hidden on display, this can be useful if one data is needed (e.g. to change color of an other column with a filter),
  but we don't want to display it
- filters have a new argument with all data of a row (for the same reason as above, one column can be used to change display of other column)
2018-02-28 18:28:39 +01:00
Goffi
195f30b4d5 jp (profile/create): errback handling 2018-02-28 18:28:39 +01:00
Goffi
0e5e340935 jp (event): added missing arg to _attend_filter 2018-02-28 18:28:39 +01:00
Goffi
d80dd87bcc jp (base): added verbosity property to CommandBase 2018-02-28 18:28:29 +01:00
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
9ab577462d jp (base): fixed assertion error when using CommandAnswering 2018-01-30 08:43:52 +01:00
Goffi
368571ea24 jp (forums): forums handling commands, first draft 2018-01-30 08:17:17 +01:00
Goffi
387c10cc0d dates update 2018-01-26 11:14:13 +01:00
Goffi
a9fb2e568e core: moved CHAT_* constants from frontends to core constants + uses constants for MESS_TYPE_* in sendMessage 2018-01-03 00:13:48 +01:00
Goffi
49edd07cd0 jp (blog): added "set" command to publish content from stdin without editing 2017-12-12 00:12:44 +01:00
Goffi
d95aeb2bd3 jp (base): added exitCb generic callback to display a message and quit 2017-12-12 00:11:27 +01:00
Goffi
1ae6d839ce jp (pubsub/search): fixed --item argument 2017-12-12 00:09:39 +01:00
Goffi
2a1777cf6f jp (merge-request): first draft:
Introduce a new "merge-request" command to handle merge request creation/sending.
2017-11-30 20:52:33 +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
a7781537d6 jp (debug/monitor): if data can't be parsed (happen at beginning/end of stream because it's not complete XML), it is printed directly. 2017-11-19 16:38:35 +01:00
Goffi
b79a309250 jp (pubsub): added new "set" command tu publish or update an item in a non-interactive way (while "edit" do it interactively). 2017-11-18 18:37:21 +01:00
Goffi
936843bb67 frontends (xmlui): fixed crash on advanced_list use:
the data variable was set to None but kept for other nodes, resulting in a crash in a later test where a dict was expected.
2017-11-08 08:31:21 +01:00
Goffi
fc2af0da9e frontends (xmlui): added an attribute to ignore some widgets (and their label) in create 2017-11-05 13:53:28 +01:00
Goffi
04c3f59571 frotends(xmlui): fixed _xmlui_for_name attribute for labels 2017-11-05 13:44:07 +01:00
Goffi
3629bb5c03 jp (debug): new monitor command to show pretty formatted XML stream 2017-11-04 22:11:45 +01:00
Goffi
d847301c70 jp (pubsub/node/create): fixed --field option 2017-11-04 22:11:01 +01:00
Goffi
f5f25e8ab5 misc: date update (yes it's a bit late :p ) 2017-11-03 14:31:42 +01:00
Goffi
4809f9aa38 jp (xmlui): fixed workflow when value is for a BoolWidget 2017-10-31 23:51:19 +01:00
Goffi
dba43447aa jp (ad-hoc/run): node is now a positional argument 2017-10-31 23:30:18 +01:00
Goffi
78911f8a3b jp (xmlui): XMLUIDialog.show has now a dummy argument, so workflow arguments can be put there 2017-10-31 23:29:45 +01:00
Goffi
3927da13c3 jp (ad-hoc): new "list" and "run" commands:
- list just display commands available at ad-hoc entry point. --verbose allows to display values names, which is useful for automation.

- run can either run interactively a command, or execute a workflow to automate them.
2017-10-31 23:20:04 +01:00
Goffi
4bceddea67 jp: XMLUI implementation first draft:
first implementation of XMLUI for jp. The display is simplistic for now by displaying widgets in the order in which they appear, and doing a simple input when a value is needed.

Not all widgets/dialogs are implemented yet, and most flags/options/styles are not handled.

It is possible to automate command, using "workflow" attribute:
it's a list of command that are executed in order. So far only a const (SUBMIT) and fields values can be set.

If verbosity is set, fields name are displayed, which can be useful to automate commands.
2017-10-31 23:17:37 +01:00