Goffi
527e561a3e
core (xmlui): added a quickNote method to easily send notes
2016-08-28 18:16:03 +02:00
Goffi
06663b9571
core: removed pyfeed and xe dependencies:
...
pyfeed and xe where still used only for date format handling, and there is already dateutil which is a dependency of Wokkel.
Furthermore pyfeed and xe are still not on pypi, causing troubles for installation with pip
2016-04-17 17:08:12 +02:00
Goffi
6bbcbaf522
use of /usr/bin/env instead of /usr/bin/python in shebang
2016-04-17 14:45:26 +02:00
Goffi
3d20c6e059
tool (common): added forgotten __init__.py
2016-03-22 22:49:00 +01:00
Goffi
787a84c29d
tools (common): added regex module with path (un)escaping methods
2016-03-22 22:46:04 +01:00
Goffi
2d1d286be2
core (tools): moved common to a separate package, and put data method in a data_format module
2016-03-22 22:46:04 +01:00
Goffi
c4ac825c8f
plugin XEP-0060: service, node and uri are added to metadata when doing a getItems
2016-03-09 16:59:29 +01:00
Goffi
0e1bf65f08
core (tools/config): fixed fixConfigOption:
...
C.DEFAULT_CONFIG was used so the default values were written if not set in the config file used, resulting in a overriding of values set in config files of higher level (e.g. ~/.config/sat/sat.conf could override /etc/sat.conf values).
2016-03-09 12:11:35 +01:00
Goffi
8403bd61ae
core (memory, config): moved parseMainConf to tools/config so it can be used by frontends too
2016-02-29 16:13:47 +01:00
Goffi
9de26f66ea
tools (utils): improved repository version detection:
...
- getRepositoryData has 2 new option: is_path to give absolute path instead of module name, and save_dir_path to save the repository data in a pickled dictionnary
- if "hg" executable doesn't work, a .hg_data dictionnary is checked if present in module root path
2016-02-28 13:42:31 +01:00
Goffi
00f47f8181
core (tools): fixed bad call to "hg id" when hg is not working to guest revision, which was the cause of an Exception
2016-02-28 01:57:51 +01:00
Goffi
04a42fa9a3
core (config): getConfig now returns unicode and raise exceptions.ParsingError in case of parsing problem
2016-01-24 18:28:08 +01:00
Goffi
c5d6e545f5
core (config): _dict values are now handled with json syntax
2016-01-23 20:06:01 +01:00
Goffi
99894bd6f2
core (xml_tools): added a method to find all elements corresponding to criteria
2016-01-22 20:24:17 +01:00
Goffi
6c11191230
core (xml_tools): unescape HTML sequences to avoid parsing error in ElementParser
2016-01-22 20:24:17 +01:00
Goffi
4a44b41793
core (xml_tools), plugin XEP-0277: ElementParser element now manage automatically the wrapping with <div/> element when needed + fixed content_xhtml/title_xhtml in XEP-0277
2016-01-22 20:24:17 +01:00
Goffi
7a2b6fa909
tools (xml_tools): removed unused import
2016-01-13 13:12:50 +01:00
Goffi
fbb50a025d
reverted patch 3770d13776e8
2016-01-13 13:11:20 +01:00
Goffi
348be27934
copyright update
2016-01-03 16:28:30 +01:00
souliane
3cc6e41ad6
tools, plugins XEP-0071, XEP-0277: remove recently added expandNewLinesToXHTML, just leave it to the convertors
2015-12-15 20:29:19 +01:00
souliane
9e0b24a4a5
memory (params): parameter jids_list values are specified with <jid>...</jid>
2015-12-15 14:12:19 +01:00
Goffi
18b1ca3d31
core (xmlui): fixed deferConfirm
2015-12-15 12:41:07 +01:00
Goffi
2a5a33df1f
core (xmlui): fixed bad call of deferredUI in deferXMLUI
2015-12-15 12:20:55 +01:00
souliane
d38543029f
tools: expandNewLinesToXHTML replaces two or more \n instead of each ones
2015-12-11 07:54:14 +01:00
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