Re: [QGIS-Developer] Questions and problems around Python expression functions

2022-02-03 Thread Benjamin Jakimow
Hi Johannes, I like to answer at least one of your questions: - Does a qgsfunction really *always* get some `feature` (potentially made-up and invalid if none is available in the context, e.g. layout text item) and `parent`? Yes, a qgsfunction always gets a feature. By default it's invalid, wh

[QGIS-Developer] Questions and problems around Python expression functions

2022-02-03 Thread WhereGroup
Hey guys! So all I wanted to do this morning was clarify the `referenced_columns` parameter for Python expression functions (#46161 and #46162) and add another example function to the default template that uses a feature. But I ended up in some confusing and conflicting documentation and beha