Commit graph libervia-backend/frontends/src
Author SHA1 Message Date
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
Goffi
3ccb4c1038 core (XMLUI), template(XMLUI): added flags to ListWidget:
following flags have been added:
- noselect: list selection is not allowed (options are the important data)
- extensible: user can add elements to the list
- reducible: user can remove elements from the list
- inline: presentation hint: the list should be displayed horizontally
2017-10-27 18:03:35 +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
bfc27d68dd jp (pubsub/delete): show deleted node + handle URIs 2017-10-27 08:33:48 +02:00
Goffi
3fe93a1b45 frontends (xmlui): added ValueGetter.keys 2017-10-20 08:39:58 +02:00
Goffi
d78aa6f922 frontends (xmlui): new _xmlui_for_name attribute:
_xmlui_for_name is an attribute which can be set to Label widgets to indicate the name of the linked widget.
This attribute is set automatically for LabelContainer.
data argument in _parseChilds is now a dict (or None)
2017-10-16 07:21:44 +02:00
Goffi
5a34d090b3 frontends (xmlui): new widget_value dict to get first value of widget by name 2017-10-16 07:18:07 +02:00
Goffi
d1a44e1501 jp (file): typo 2017-10-16 07:16:11 +02:00
Goffi
151faf6a73 jp (ticket): ticket command first draft:
only has an "import" subcommand for now
2017-10-06 10:55:54 +02:00
Goffi
1bcdca4a2f plugin import: node can now be specified + added a "session" dict to keep import session data:
import session data are data that can be used by importer to store anything which can be useful to keep between import methods.
2017-10-06 08:52:51 +02:00
Goffi
3c79544cc4 jp (base): fixed CommandAnswering and progress bar 2017-10-01 12:21:23 +02:00
Goffi
83aa722103 frontends (xmlui): a dict of named widgets is kept, so they can be easily be retrieved 2017-10-01 12:21:23 +02:00
Goffi
506f948214 core, frontends (xmlui): new LabelContainer:
LabelContainer is like a PairContainer where first widget can only be LabelWidget or EmptyWidget. This case is the most common, and allow to generate better code when label can be associated to widget (e.g. in HTML).
2017-09-24 16:36:11 +02:00
Goffi
c7ccdde0c9 jp (pubsub/node/schema): check that a schema exists before parsing it (fix issue on new schema edition) 2017-09-24 16:29:18 +02:00
Goffi
dcb60b3709 jp (shell): changed prompt colour 2017-09-08 07:58:10 +02:00
Goffi
15ff6aedf4 jp (shell): fixed use of profile + added EOF handling:
- main profile (i.e. the one specified on command line when invocating "jp shell") was not used. It is now added to arguments if the value is not overriden on command line or in use
- EOF (i.e. when user press C-d) is now understood as "quit" command
2017-09-08 07:58:10 +02:00
Goffi
e33d68bcf1 jp (pubsub): added subscribe, unsubscribe and subscriptions methods:
those methods are added in pubsub directly instead of being subcommands of pubsub/subscription to make them more easy/natural to use. The node owner versions are in pubsub/node/subscriptions though.
2017-09-08 07:58:08 +02:00
Goffi
e9c0f5e127 jp (pubsub/node): added schema (set/edit/get) commands to manipulate PubSub node schema 2017-09-06 07:39:10 +02:00
Goffi
c9c34550df jp (output/template): check if there is a template before initializing Renderer 2017-08-24 01:11:47 +02:00
Goffi
2801c01eca jp (info/disco): fixed headers order for items table 2017-08-23 00:52:36 +02:00
Goffi
c46bd004fc jp (info/disco): type selection + output improvments:
- type of discovery can now be specified (can be "infos", "items", or "both" which is the default)
    - a complex output is now used
    - default output has been improved by the use of colors an tables
2017-08-23 00:14:15 +02:00
Goffi
f4761fb1cc jp (common): added use_buffer argument in Table:
when use_buffer is True, the Table is not printed but put in a buffer. A unicode string can then be computed when string property is used.
2017-08-23 00:10:09 +02:00
Goffi
40fa0ed846 jp (common): fixed empty table display when headers are specified 2017-08-23 00:08:30 +02:00
Goffi
caa64d5118 jp (info/disco): added --no-cache option 2017-08-22 22:13:22 +02:00
Goffi
9f30634f14 core (memory/disco): added use_cache parameter to discoInfos/discoItems (set to False to ignore cache) 2017-08-22 22:12:57 +02:00
Goffi
2964a74dda jp (info): fixed help for version and session 2017-08-20 15:01:35 +02:00
Goffi
1d07c6bdd7 jp (pubsub/node): added subscriptions subcommand:
added subscriptions commands for node owner, with get/set subcommands (work in a similar way as affiliations)
2017-08-20 10:33:33 +02:00
Goffi
eebf6e50e7 jp (profile): added disconnect command 2017-08-20 10:26:10 +02:00
Goffi
4dea715ec5 primitivus(chat): fixed scroll down (was broken when Primitivus had not the focus and was receiving messages) 2017-07-17 16:20:55 +02:00
Goffi
b4312f210a jp (common): fixed decode error when item is not specified 2017-07-14 09:06:03 +02:00
Goffi
50ff24cc64 primitivus (chat): added "GOTO_BOTTOM" ("G") shortcut to scroll down to last message in history 2017-07-14 08:34:10 +02:00