summaryrefslogtreecommitdiff
path: root/src/plugins/python
AgeCommit message (Collapse)Author
2024-03-12api: add function "hdata_longlong" (issue #2081)Sébastien Helleu
2024-03-10core: use whole replacement string instead of first char in function ↵Sébastien Helleu
gui_color_decode
2024-03-05python: add infolists "python_function" and "python_constant"Sébastien Helleu
2024-03-05plugins: move scripting API constants to plugin-script.cSébastien Helleu
2024-03-05doc: move script doc/python_stub.py to tools/generate_python_stub.pySébastien Helleu
2024-03-05api: add functions config_{boolean|integer|string|color|enum}_inherited in ↵Sébastien Helleu
scripting API
2024-03-05api: add functions config_option_get_string and config_option_get_pointer in ↵Sébastien Helleu
scripting API
2024-02-25doc/api: fix string format in calls to weechat.prnt (examples in Python)Sébastien Helleu
2024-02-25python: fix truncation of unsigned long long integer returned by function ↵Sébastien Helleu
string_parse_size
2024-01-01core: update copyright datesSébastien Helleu
2023-12-26core: store microseconds in buffer lines (closes #649)Sébastien Helleu
2023-12-15core: fix crash on plugin reload when using musl libs (closes #2052)Sébastien Helleu
2023-12-14core: fix styleSébastien Helleu
2023-09-22script: fix removal of script in system directory while trying to install a ↵Sébastien Helleu
script (closes #2019)
2023-09-16scripts: add function hook_url in scripting APISébastien Helleu
2023-09-09scripts: add functions config_enum and config_enum_default in scripting API ↵Sébastien Helleu
(issue #1973)
2023-08-29api: add support of path to variable and hashtable comparison in function ↵Sébastien Helleu
hdata_compare (closes #1066)
2023-08-24Add compatibility with Python < 3.10 in weechat.pyiTrygve Aaberge
The | syntax for unions is only supported in Python 3.10 and later. Since Python 3.8 and 3.9 are still supported upstream for a while and we had a user reporting on IRC that they couldn't use the stub file since they are using 3.8, change to the old syntax for unions to support this. There aren't really any drawbacks of this. It's just a bit more verbose, and a typing import is necessary, but neither of those really matters in a generated stub file.
2023-08-18scripts: fix function string_parse_size on 32-bit systems (python and ruby) ↵Sébastien Helleu
(issue #1999)
2023-07-08core: add option type "enum" (closes #1973)Sébastien Helleu
The type "enum" replaces type "integer" when used with string values. For compatibility, any option created with type "integer" and string values is automatically created to "enum" on creation, with no error.
2023-06-05doc: fix URLs to WeeChat docsSébastien Helleu
2023-05-30core: send all command line parameters not beginning with a dash to all ↵Sébastien Helleu
plugins, add info "auto_load_scripts" This fixes an issue with IRC URL given on command line when it starts with `ircs://` or `irc6://`: the server is not created at all (only `irc://` works fine).
2023-05-13core: add quotes around paths in CMake files (closes #29)Sébastien Helleu
2023-03-16core: add configuration version, add API function config_set_versionSébastien Helleu
2023-01-28core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)Sébastien Helleu
2023-01-28core, plugins: check that string parameters are not NULL in search functions ↵Sébastien Helleu
(issue #1872)
2023-01-28core: make function gui_buffer_match_list case sensitive (issue #1872)Sébastien Helleu
2023-01-28core, plugins: make info, info_hashtable and infolist case sensitive (issue ↵Sébastien Helleu
#1872)
2023-01-28core, plugins: make commands, hook command_run, completions and aliases case ↵Sébastien Helleu
sensitive (issue #1872)
2023-01-28plugins: set priority in calls to weechat_config_new (issue #1872)Sébastien Helleu
2023-01-08python: remove unneded call to deprecated function PySys_SetArgvSébastien Helleu
This function is deprecated since Python 3.11.
2023-01-08core: remove build with autotoolsSébastien Helleu
CMake is now the only way to build WeeChat.
2023-01-03plugins: change priority of scripting pluginsSébastien Helleu
Use a step of 10 between each scripting plugin priority.
2023-01-01core: update copyright datesSébastien Helleu
2022-12-11doc/api: Improve python example for config_new_sectionTrygve Aaberge
This updates the Python examples to include all the possible return values for the callbacks in config_new_section, like it is done in the C example. It also aligns the order of the values with the C example.
2022-12-11scripts: Send null values to config section callbacksTrygve Aaberge
The callback_read and callback_create_option functions in the scripting APIs always get the value as a string, never as null. This means that if the value is null, there is no way for the script to distinguish this from an empty string for string options. This makes it impossible to properly make options with fallback values, like the irc server and server_default options, as far as I can see. All the scripting languages except Tcl use that language's equivalent for null. For JavaScript which has both null and undefined, null is used. For Tcl, the magic null string defined in commit 197a7a01e is used and the documentation is updated to describe that. I tested this with these scripts: https://gist.github.com/trygveaa/2d49c609addf9773d2ed16e15d1e3447 You can load all of those scripts and see the result with this command (assuming you have the scripts in the current directory): weechat -t -r "/filter add script * * script; /script load $(echo script_config.*)"
2022-10-16python: remove functions defined for Python < 2.6Sébastien Helleu
2022-10-15python: remove support of Python 2.xSébastien Helleu
2022-10-15api: do not expect any return value in callbacks change/delete of ↵Sébastien Helleu
config_new_option (scripting API)
2022-10-14python: Fix return types for config option callbacksTrygve Aaberge
I erroneously typed the return types for these to int in commit e0c117e14, but they should be None.
2022-10-09python: Include script examples in function docstringTrygve Aaberge
This makes it possible to see how functions are used without having to go to the web page. It's especially useful to see the types of the callback functions.
2022-10-02python: Include constant values in python stubTrygve Aaberge
This is useful for two reasons: 1. When running unit tests for a script weechat needs to be mocked. By having the constant values available in the stub file, they can be loaded from that, instead of having to define the constants manually for the mock. 2. If you log a constant value you have to look up what it means. This makes it easier, in the same vein as PR #1824.
2022-09-29api: change type of argument object_id in upgrade_new callback from string ↵Sébastien Helleu
to integer (in scripts)
2022-09-29api: change type of argument remaining_calls in hook_timer callback from ↵Sébastien Helleu
string to integer (in scripts)
2022-09-27api: add function string_parse_sizeSébastien Helleu
2022-08-01scripts: fix issue with long interval in function hook_timerSébastien Helleu
Affected plugins: python, ruby, lua, tcl, guile, javascript, php.
2022-08-01scripts: fix issue with year ≥ 2038 in functions print_date_tags and ↵Sébastien Helleu
print_y_date_tags Affected plugins: python, lua, tcl, guile, javascript.
2022-08-01scripts: fix issue with year ≥ 2038 in function infolist_new_var_timeSébastien Helleu
Affected plugins: python, lua, tcl, guile, javascript.
2022-07-20api: add arguments "index_start" and "index_end" in function ↵Sébastien Helleu
string_rebuild_split_string
2022-07-20api: rename function string_build_with_split_string to ↵Sébastien Helleu
string_rebuild_split_string