From b2e4041757913529509d01754ddd60bc2afde8c9 Mon Sep 17 00:00:00 2001 From: Harrissou Sant-anna Date: Thu, 6 Sep 2018 13:01:03 +0200 Subject: [PATCH] Add handlesnull parameter to custom function template help --- python/user.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/user.py b/python/user.py index de4a35f1d72..6c06fb17ed3 100644 --- a/python/user.py +++ b/python/user.py @@ -83,10 +83,14 @@ The function accept the following parameters The @qgsfunction decorator accepts the following arguments: -:param args: Defines the number of arguments. With ``args='auto'`` the number +:param args: Defines the number of arguments. With ``args='auto'`` the number of arguments will automatically be extracted from the signature. + With ``args=-1``, you can pass any number of arguments. :param group: The name of the group under which this expression function will be listed. +:param handlesnull: Set this to True if your function has custom handling for NULL values. + If False, the result will always be NULL as soon as any parameter is NULL. + Defaults to False. :param usesgeometry: Set this to False if your function does not access feature.geometry(). Defaults to True. :param referenced_columns: An array of attribute names that are required to run