Commit graph libervia-backend/src/tools
Author SHA1 Message Date
Goffi
7cbcc26d7d xml_tools: minor attribute renaming 2015-08-15 22:27:39 +02:00
Goffi
975e4ac51f core: new tools.sat_defer module, and implementation of RTDeferredSessions:
The real-time deferred session is a class which manage session of several deferreds at once (pretty much like a DeferredList), with the ability to get intermediate results.
2015-08-15 22:13:27 +02:00
souliane
eaaa5e2164 tools (config): when reading a list or dict from the config file, ignore spaces immediately following the delimiter 2015-07-22 11:42:37 +02:00
souliane
7c4bed58c5 tools (xml_tools): better PEP-8 compliance 2015-07-21 15:36:40 +02:00
souliane
67ff77e5de massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions 2015-04-16 14:57:57 +02:00
Goffi
fbec02d396 2015 copyright dates update 2015-03-30 10:26:26 +02:00
Goffi
c2314640ba core: getRepositoryData now get the module in argument 2015-03-19 20:40:10 +01:00
Goffi
2900e815c4 core: if we are in dev version and it's possible, repository data are now checked and added to SàT version 2015-03-19 19:47:01 +01:00
Goffi
76065758df renamed tools.misc to tools.trigger 2015-03-19 19:44:37 +01:00
souliane
5d1681de93 frontends (QuickApp), tools (TriggerManager): frontends can also use triggers + add those for sending and receiving a message 2015-03-03 15:05:10 +01:00
Goffi
f14cce8a10 core (config): fixed a bad option check 2014-10-16 20:10:08 +02:00
Goffi
59d3994859 core (config): added the Exception default value which raise an exception instead of returning the default in getConfig 2014-10-11 16:26:43 +02:00
Goffi
6b20989ecc core: better management of default value in getConfig 2014-10-07 17:12:41 +02:00
souliane
ac59d061f4 memory (params), tools (xml_tools), plugins, frontends: add "int" parameter type with "min" and "max" attributes 2014-10-03 12:27:43 +02:00
Matteo Cypriani
71e29f5c44 misc: fixed some typos 2014-09-15 14:18:25 +02:00
Goffi
70dc0f26b0 core (XMLUI): sugar method "note" allow to easily create a XMLUI note dialog (more methods for other dialogs should follow) 2014-08-27 01:24:26 +02:00
Goffi
df69c77ea3 plugin OTR: authentication management + fixed a bug in setState (due to a wrong docstring in potr.context.getCurrentTrust) 2014-08-27 00:23:14 +02:00
souliane
987cfbf89d move sat.tools.jid to sat_frontends.tools.jid 2014-08-26 12:52:46 +02:00
Goffi
75b26ab7f1 reverted commit b1cb1d70bea9: jid should not be lowercase ! 2014-08-25 19:39:07 +02:00
souliane
5f1c2d3a49 tools (jid): force JIDs to lower case 2014-08-24 13:15:51 +02:00
Goffi
38efb8b0bd core (XMLUI): Dialogs are now managemed in XMLUI:
- currents dialogs are available:
        - Message: a classical informational/error message, usually a popup that user has to close after reading
        - Note: more discreet message, usually a notification with a timeout (user don't need to close manually)
        - Confirm: a Ok/Cancel or Yes/No dialog
        - File: a dialog to get a file or dir path
    - dialog_opt parameter is used to customise dialogs
    - submit_id is used in a similar way as for forms
2014-08-11 19:10:24 +02:00
Goffi
8ca72f8a9f core/frontends (XMLUI): value can now be inserted as a <value/> element, if not present value attribute is tested, else empty string is used. 2014-06-25 14:01:57 +02:00
Goffi
2cc6d6549f core (XMLUI): created a read_only attribute for InputWidget + new JidInputWidget 2014-06-25 14:01:55 +02:00
souliane
db130b95be tools (xmlui): data form 'text-multi' element must be converted to xmlui 'textbox' (not 'text') 2014-06-18 14:55:35 +02:00
Goffi
b207fdd6c9 core (XMLUI): management of text-multi in _dataFormField2XMLUIData 2014-06-14 17:25:08 +02:00
Goffi
4bbf1e2be6 core (XMLUI): data form result now manage generic data set 2014-06-14 17:24:16 +02:00
souliane
f08b22ecb2 tools (xml_tools): dataForm2XMLUI handles the default value for "list-single" fields 2014-06-12 18:19:55 +02:00
souliane
76413b3679 memory, tools (config): move special config retrieval from memory to tools 2014-06-09 20:40:13 +02:00
souliane
6f5de58d6e tools (config): fixConfigOption creates the section if it doesn't exist 2014-06-08 17:27:03 +02:00
souliane
90115df6f1 tools: add missing file src/tools/config.py 2014-05-23 10:03:33 +02:00
souliane
2a74cd0c06 tools (xmlui): to click a button in a "param" form will automatically submit the parameters of the same category 2014-05-16 00:53:09 +02:00
Goffi
501bc92528 core: use of the new core.log module:
/!\ this is a massive refactoring and was largely automated, it probably did bring some bugs /!\
2014-04-19 19:19:19 +02:00
Goffi
c497e19b25 core (XMLUI): _cleanValue method to avoid issues with DBus types (must be deleted in the future) 2014-04-07 16:22:35 +02:00
souliane
38eb876e94 tools, frontends (xmlui): add Widget.setInternalCallback:
- to add UI callback not communication with the bridge
    - a list of predefined actions can be used to copy, move, select values
    - extra data can be passed within the 'internal_data' element
TODO: frontend side operation to retrieve the data from node to data structure should be generic
2014-04-03 14:56:16 +02:00
souliane
ec579aff81 reverted changeset 5c7707c958d8 (revision 969) 2014-04-03 14:38:48 +02:00
souliane
6608eafb9f tools, frontends (xmlui): add setter methods for widgets + new widget InternalButton to process UI operations 2014-04-01 21:30:21 +02:00
souliane
608e2ba9fa tools, frontends, memory: param definition and XMLUI handle multi-selection for list widgets:
- we need to update urwid_satext to revision 79
                          - no more "value" attribute value in the "list" element, use
                            HTML-style "select" attribute in the "option" elements instead
                          - /!\ param saving do not handle multiple values yet!
2014-04-01 21:21:13 +02:00
Goffi
005ec59a8a core: use of Const for profile_key + replaced '@DEFAULT@' default profile_key by '@NONE@' 2014-03-21 16:27:09 +01:00
Goffi
3be53bdc69 core (XMLUI): BoolWidget now accept real boolean for value 2014-03-21 15:03:56 +01:00
souliane
b0896b53b7 tools: xml_tools.ElementParser do not replace '\n' and '\t' with ' ' by default 2014-03-15 00:15:49 +01:00
souliane
647db64941 tools, plugin XEP-0077: small fixes 2014-02-25 22:58:42 +01:00
Goffi
8f0cf4697b core (xmlui), frontends: handling of "text" type in params xml + bug fixes 2014-02-25 23:01:26 +01:00
Goffi
171feb26d2 core (xmlui): fixed types with empty value are now correctly managed in _dataFormField2XMLUIData 2014-02-25 02:22:17 +01:00
Goffi
fa6e44507c core(XMLUI): empty options in ListWidget now just show a warning message, no more assert 2014-02-13 18:50:49 +01:00
Goffi
2ca6efd8cc dates update 2014-02-04 18:32:49 +01:00
Goffi
54f9e557e1 core (XMLUI): fixed labels management for lists in _dataFormField2XMLUIData 2014-02-04 18:32:46 +01:00
Goffi
18aeb3a6aa core (XMLUI), frontends: advancedListContainer part 2: 2014-02-04 18:21:51 +01:00
Goffi
edf3e1bc87 XMLUI (core, frontends): added JidWidget and DividerWidget + popup type + some bugfixes:
- JidWidget is a text container a Jabber ID, this can be used by frontends for special treatment (e.g.: possibility to click on it)
    - DividerWidget is a separator, like a blank or dashed line
    - popup type is similar to normal window, but designed for a smaller popping window
2014-02-04 18:19:32 +01:00
Goffi
9661c1c2c5 core, frontends: implementation of AdvancedListContainer first draft + misc:
/!\ Urwid SàText must be updated as the new TableContainer is used /!\
    - fixed button value in paramsXML2XMLUI
    - new Urwid SàText TabContainer is used in Primitivus for PairsContainer and AdvancedListContainer
    - fixed in core's XMLUI AdvanceListContainer
2014-02-04 18:19:29 +01:00
Goffi
b3fb68cb63 core, frontends: XMLUI refactoring:
- XMLUI now use objects with 2 main classes: widgets (button, label, etc), and container which contain widgets according to a layout
    - widgets and containers classes are found through introspection, thereby it's really easy to add a new one
    - there is still the AddWidgetName helper, for example AddText('jid', 'test@example.net') will add a StringWidget with name "jid" and default value "test@example.net"
    - container can be inside other containers. changeContainer change the first parent container
2014-02-04 18:19:00 +01:00