Germán Carrillo
b9ee50b963
Add parameter to decorator in default custom expression function to avoid 'No feature was found on this layer to evaluate the expression' message and be able to get a calculated value even on empty layers
2021-04-09 16:32:22 -05:00
Nyall Dawson
b6a7a10703
Fix some more python formatting issues, remove more flake exceptions
2020-05-11 11:41:50 +10:00
Bas Couwenberg
2628c480c5
Don't include revision in sources.
...
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Nathan Woodrow
8dd0f00877
Fix - Fix loading expression template for first item and space vs tabs
...
Fix tab vs spaces in Python editor widget. Use spaces
2018-10-15 10:23:24 +10:00
Nathan Woodrow
42ea216478
FIX - Move custom expression function help to group box ( #8163 )
2018-10-11 15:23:06 +10:00
Harrissou Sant-anna
2d1dbe7f74
Add precision to args=-1 usage
2018-09-10 15:25:42 +10:00
Harrissou Sant-anna
b2e4041757
Add handlesnull parameter to custom function template help
2018-09-10 15:25:42 +10:00
Harrissou Sant-anna
14f36f201f
Fix typo
2018-08-27 09:15:48 +10:00
Denis Rouzaud
3dc3d9d1b2
unite QgsMessageLog::Level and QgsMessageBar::MessageLevel in Qgis::MessageLevel
...
make enum items lower case
remove unused QgsMessageLog::None and All
2018-02-06 08:56:40 -04:00
Matthias Kuhn
fd25288a64
Documentation for custom functions
2017-05-05 15:39:29 +02:00
Alexander Bruy
373e591a80
drop old user startup script in favour of the new system
...
User script should be placed into $HOME/.local/share/QGIS.
Additionally global scripts from /usr/local/share and
/usr/share will be loaded if present
2016-11-03 12:11:57 +02:00
Denis Rouzaud
8071acd064
move PyQt compat folder to python/qgis
2016-04-29 14:10:26 +02:00
Juergen E. Fischer
271750fd53
switch bindings to pyqt wrappers
2016-03-21 17:00:26 +01:00
Juergen E. Fischer
4e1cf3c081
add missing copyright headers
2016-01-08 21:32:11 +01:00
Juergen E. Fischer
cc9c789760
avoid on duplicate user functions ( fixes #13579 )
2015-10-18 00:27:28 +02:00
Juergen E. Fischer
b39055b39c
indentation update (now including autopep8)
2015-08-22 14:29:41 +02:00
Nathan Woodrow
fbad68075b
Fix #13059 - Fix expression template load error
2015-07-04 21:06:02 +10:00
Nathan Woodrow
21121286f0
Fix crash on user.py import of expressions
2015-06-26 19:54:16 +10:00
Nathan Woodrow
738838acd4
Fix #12340 - Reload site to pick up new expressions package
2015-06-01 14:44:54 +10:00
Nathan Woodrow
4b6ad0c237
Fix #12850 - Add missing args='auto' keyword'
2015-06-01 13:56:41 +10:00
Juergen E. Fischer
2ab8a0bed9
include user.py in translations
2015-05-31 00:42:51 +02:00
Salvatore Larosa
f7401c9b27
[user expression] Fix crash and add a log message when the expression is not valid, fixes #12852
2015-05-31 00:07:33 +02:00
Nathan Woodrow
f2144918d2
Less verbose template function message.
...
args='auto' and group='custom' as default
2015-05-27 22:39:12 +10:00
Juergen E. Fischer
956c155e8f
fix python pep8 warnings and fix some revealed errors
...
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
--exclude="ui_*.py,debian/*,python/ext-libs/*" \
.
2015-02-01 20:46:47 +01:00
Juergen E. Fischer
cce2eb50cb
indentation update
2015-01-22 20:56:02 +01:00
Nathan Woodrow
56069c9c21
Move template text to qgis.user.expressions
2015-01-22 16:12:01 +10:00
Nathan Woodrow
51bb80329c
Ensure users python folder is on path
...
Fix import of expressions if we have to make the the python\expressions
folders
2015-01-20 09:55:00 +10:00
Nathan Woodrow
59162bc178
[FEATURE] Function editor for expression widget.
...
Allows for adding on the fly functions to the expression engine.
Functions are saved in qgis2\python\expressions.
New qgis.user module in Python.
The qgis.user.expressions package points to the qgis2\python\expressions
package in the users home
2015-01-16 19:43:47 +10:00