Denis Rouzaud
0f032e5f2d
run pre-commit on all files
2024-11-29 15:38:02 +01:00
Nyall Dawson
2ef0734913
Add test to ensure help examples are valid expressions
2023-04-12 09:51:36 +10:00
Etienne Trimaille
da8bb1db43
Python - Run pyupgrade on some Python files
2023-02-02 06:46:47 +10:00
Harrissou Sant-anna
a3a0ebf07e
Do not split expression functions tags list into single words for translation
...
Fixes #47486
2022-04-19 08:57:27 +10:00
Sebastian
d175318870
add deleted exception
2021-05-17 09:54:03 +10:00
Sebastian
37a34b5820
fix 43080 and improve Exception
2021-05-17 09:54:03 +10:00
David Signer
314e2339eb
write tags to the expression functions help object
2019-12-03 15:29:16 +01:00
Nyall Dawson
3ba9515427
Fix expression function helping missing for all functions
...
Fixes #33016
2019-11-26 03:58:51 +10:00
Matthias Kuhn
d26375abba
Fix this and that
2019-11-02 15:01:59 +01:00
Matthias Kuhn
2b20c61eaf
Less global statics in expressions
2019-11-02 15:01:59 +01:00
Matthias Kuhn
ad22e6386a
Less global statics in expressions
2019-11-02 15:01:59 +01:00
Juergen E. Fischer
d37a79943f
handle utf-8 in function help
2018-09-17 02:34:36 +02:00
Juergen E. Fischer
968b50f4f0
expression help: support optional parameters and defaults
2018-05-10 20:15:39 +02:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Nyall Dawson
b5480633e4
Standardise names for static variables
...
All non-const variables are prefixed with "s", all const
statics are ALL_CAPS
2017-01-14 16:40:24 +10:00
Nyall Dawson
54d093ed48
Function argument name should not be translatable
2016-04-04 13:59:22 +10:00
Nyall Dawson
ae00eb965c
[FEATURE] Allow expression functions to use named parameters
...
This commit sets the framework for allowing expression functions to
use named parameters. Ie, instead of:
clamp(1,2,3)
you can use:
clamp( min:=1, value:=2, max:=3)
This also allows arguments to be switched, eg:
clamp( value:=2, max:=3, min:=1)
Additionally, it allows for a more structured definition of function
parameters to handle optional arguments and default values for
parameters. These are currently being done using a hacky infinite
argument list.
I've utilised the postgres ':=' syntax for specifying named arguments
to avoid potential collisions which may arise with the equality test
if we re-used just the '=' operator alone.
Sponsored by North Road
2016-04-04 13:59:13 +10:00
Nyall Dawson
2eb95f081f
Fix more warnings when building under clang with -wEverything
2016-01-02 11:08:03 +11:00
Matthias Kuhn
dea8c9f6e8
[py3] Compat update process_function_template.py
2015-11-16 07:42:48 +01:00
Juergen E. Fischer
83fd65ab61
only update qgsexpression_texts.cpp if there are actual changes
2015-09-30 18:17:51 +02:00