souliane
2df5519eda
plugin XEP-0277, xml_tools: restore decapsulation of XHTML content
...
- to avoid successive nesting of the content in <div>
- otherwise there is a new <div> at each item modification
2015-12-10 14:21:51 +01:00
souliane
ca5c913ce2
xml_tools, plugin XEP-0071, XEP-0277: add method expandNewLinesToXHTML:
...
- \n in XHTML content should not be converted to <br /> by the frontend
- save it directly in the Atom payload for better compatibility with other clients
2015-12-10 14:00:21 +01:00
Goffi
6a44221a83
core (xmlui): new deferredUI method allows to manage XMLUI with a Deferred insteand of manual submit_id handling:
...
- this differ from deferXMLUI, as it can be used in ui returned to frontend after a bridge call (deferXMLUI use actionNew only)
- the "chained" argument allow to manage series of XMLUIs
- this argument is also present in deferXMLUI
2015-11-27 16:45:55 +01:00
Goffi
6540e5fb6f
core (tools): new tools.common module with tools used by backend and frontends. dict2iter and iter2dict method to serialise iterable in a dict (for bridge)
2015-11-24 16:21:18 +01:00
Goffi
6b7272c5b3
core (xmlui): fixed security_limit in deferXMLUI
2015-11-22 21:24:23 +01:00
Goffi
a42452ff57
core, bridge: actionsGet:
...
- added a new mechanism to keep actions until they are answered (or timeout-ed)
- keep_id must be explicitly used on actionNew
- actionsGet is used to retrive these actions
- the mechanism is used in deferXMLUI
2015-11-17 21:28:58 +01:00
Goffi
de85e24577
core (xmlui), plugin file: added action_extra param to deferXMLUI/deferDialog which is merged to the action data dict when actionNew is called
2015-11-15 23:11:27 +01:00
Goffi
fbbb081425
backend, bridge, frontends: actionNew has now a security_limit argument + added some docstring to explain data argument
2015-11-14 19:21:56 +01:00
Goffi
6a84960811
core (tools): “DelayedDeferred” implementation, which is a Deferred launched after a delay
2015-11-02 22:02:41 +01:00
Goffi
c0bc337c40
core (xmlui): fixed submit_id returning None when its value is ''
2015-09-26 18:39:05 +02:00
Goffi
ea0eb492d5
core (XMLUI): restorer submit_id:
...
- submit_id was missing due to a previous change in commit a2e4b976e707
- XMLUI.submit_id can now be None (not set) or empty string in addition to normal values
fix bug 102
2015-09-26 15:00:27 +02:00
Goffi
9e6646949a
core (xmlui): deferDialog can now manage additional dialog options through the "options" argument
2015-09-25 19:19:12 +02:00
souliane
9dad292328
tools (xml_tools): split dataFormResult2AdvancedList in dataFormResult2XMLUIData and XMLUIData2AdvancedList
2015-09-02 13:56:34 +02:00
Goffi
22808f8c63
core (xmlui): added helper method to easily manage dialogs with a deferred
2015-08-27 17:59:22 +02:00
Goffi
e8c3e3500d
core (utils): added a method to generate XEP-0082 style dates
2015-08-27 17:59:11 +02:00
souliane
56dc4840a6
tools (xml_tools): keeps data form result headers sorted
2015-08-26 12:24:38 +02:00
souliane
822798d965
tools (xml_tools): fixes JidElement.__init__
2015-08-26 12:23:55 +02:00
Goffi
2319ce59fb
core (xmlui): reverted change from 039d96e131be: we should be able to recreate the same container with changeContainer
2015-08-25 15:39:16 +02:00
souliane
ab6b04b898
tools (xmlui): changeContainer do not create a new one when the current one already fits
2015-08-21 14:58:42 +02:00
souliane
a90bcacfe9
tools, frontends (xmlui): allow to select a tab when adding it
2015-08-21 14:17:41 +02:00
Goffi
8e37cf55ed
core (xmlui): added JidsListWidget to manage editable list of jids:
...
- can be used to manage XEP-0004's jid-multi
- can be used in the future for search result to display found entities (need a read-only style)
- generaly usefull to manage list of entites
- implemented in params too
2015-08-20 18:33:52 +02:00
Goffi
31582c98f9
core(xmlui): removed useless parenthesis around assert
2015-08-18 10:52:18 +02:00
Goffi
7f14e1865d
core , privmitivus (xmlui): add jidInput handling, with a simple String for now
2015-08-18 10:35:44 +02:00
Goffi
2c37acf27f
xmlui: minor docstring fixes
2015-08-18 10:04:47 +02:00
Goffi
b36c1d6493
core: tools.utils.getRepositoryData now return "hg log -r -1" and short form of node + fixed crash if mercurial is not present:
...
short form is now returned in string version for better readability. Even if a collision is possible, it's not a big deal as it is used mainly in about dialog to help identify a version in case of e.g. bug.
2015-08-18 09:37:25 +02:00
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