Matthias Kuhn
08cb2d78d3
[FEATURE] Default values on update
...
Add an option to add default values on update of attributes or geometry.
This can be seen as a "derived value" that will be saved to the database
(like area of a polygon) or as a means to track last_modified dates etc.
See #5218
2017-09-29 17:55:02 +02:00
Matthias Kuhn
e0cdb18ec1
Fix indentation
2017-09-29 17:52:34 +02:00
Matthias Kuhn
2fbb6f09cc
Avoid recursion in apply on update default values
2017-09-29 17:52:34 +02:00
Matthias Kuhn
cf77ffe85b
Config interface for apply on update default values
2017-09-29 17:52:33 +02:00
Matthias Kuhn
89289598fe
Doxygen
2017-09-29 17:52:33 +02:00
Matthias Kuhn
e025011799
Make Mr. Travis happy
2017-09-29 17:52:33 +02:00
Matthias Kuhn
3562af4db7
Fix missing import
2017-09-29 17:52:33 +02:00
Matthias Kuhn
6e3c01dbe7
Fix QgsVectorLayerUtils::createFeature
2017-09-29 17:52:33 +02:00
Matthias Kuhn
0dbe588263
Fix compilation
2017-09-29 17:52:32 +02:00
Matthias Kuhn
366433e1f5
Add more applyOnUpdate tests
2017-09-29 17:52:32 +02:00
Matthias Kuhn
1552b4ed3b
Test updates for changed method name/signature
2017-09-29 17:52:32 +02:00
Matthias Kuhn
17fe7e8aec
Doxygen updates for changed method names
2017-09-29 17:52:32 +02:00
Matthias Kuhn
5be2bc1014
Default Value updates for QgsField stream operator
2017-09-29 17:52:32 +02:00
Matthias Kuhn
951b699c97
More default value tests
2017-09-29 17:52:31 +02:00
Matthias Kuhn
4c118be5be
Actually apply default value
2017-09-29 17:52:31 +02:00
Matthias Kuhn
05adea838b
Pssst... Quiet, there are people around
2017-09-29 17:52:31 +02:00
Matthias Kuhn
ff385fb035
Add tests for QgsDefaultValue
2017-09-29 17:52:31 +02:00
Matthias Kuhn
f0b71499d1
Rename QgsField::defaultValue
...
It's now called QgsField::defaultValueDefinition, because it's only a
value after being evaluated
2017-09-29 17:52:31 +02:00
Matthias Kuhn
650b64eba0
Update cpp tests for QgsDefaultValue
2017-09-29 17:52:30 +02:00
Matthias Kuhn
f99044f99c
Remove redundant nullptr check
2017-09-29 17:52:30 +02:00
Matthias Kuhn
dded657a57
Fix typo in QgsFields api doc
2017-09-29 17:52:30 +02:00
Matthias Kuhn
900be9f57f
Properly report QgsDefaultValue.__bool__ in Python
2017-09-29 17:52:30 +02:00
Matthias Kuhn
f2d512a73a
Apply default values on update
2017-09-29 17:52:30 +02:00
Matthias Kuhn
7b36287ff3
Use QgsDefaultValue throughout the code
2017-09-29 17:52:29 +02:00
Matthias Kuhn
cab3a38461
Doxymentation
2017-09-29 17:52:29 +02:00
Matthias Kuhn
5fba1e85aa
Add sip bindings
2017-09-29 17:52:29 +02:00
Matthias Kuhn
7c9967a929
Add some doxymentation
2017-09-29 17:52:29 +02:00
Matthias Kuhn
d6eb7ba3e7
Add "apply on update" option to default values
2017-09-29 17:52:28 +02:00
Matthias Kuhn
cb8ae89dd1
Merge pull request #5269 from m-kuhn/represent_value
...
[expression] represent_value also determines implicitly provided column name
2017-09-29 17:41:07 +02:00
Matthias Kuhn
0a9a352f77
Make parse_dash_result safer to use
2017-09-29 17:40:27 +02:00
Matthias Kuhn
d947c8d72a
Update control image mask
2017-09-29 17:40:27 +02:00
Matthias Kuhn
f10eb9858c
Make valid CRS test less sensitive
...
See fbf99afd01 (commitcomment-24572295)
2017-09-29 17:40:27 +02:00
Matthias Kuhn
f981795bec
Silence the lambs
2017-09-29 17:37:44 +02:00
Matthias Kuhn
8e7db5488f
Range based for loop
2017-09-29 17:37:35 +02:00
Matthias Kuhn
d299c687d5
Fix NULL vs 0 issue in relation reference widget
...
Fix #16760 https://issues.qgis.org/issues/16760
2017-09-29 17:36:35 +02:00
Alessandro Pasotti
242696c1d5
[auth] Added tests and completed QgsAuthenticationWidget
2017-09-29 17:34:59 +02:00
Matthias Kuhn
ca5a0bb3de
Fix python expression functions
2017-09-29 17:01:33 +02:00
Juergen E. Fischer
f4bc3a28d7
typo fix
2017-09-29 13:12:59 +02:00
Alessandro Pasotti
458213590d
[auth] Morph push button to toolbutton for consistency and Mac compatibility
2017-09-29 12:49:17 +02:00
Alessandro Pasotti
7804e04bf2
[auth] Add missing import after re-design of the auth config selector
2017-09-29 12:49:17 +02:00
Alessandro Pasotti
9ba7a8ca2a
[auth] Re-designed authentication configuration selector widget
...
- single line widget
- takes much less space
- it has the same functionality of the previous version
- use icons and tooltips to convey information
2017-09-29 12:49:17 +02:00
Alessandro Pasotti
db0c223ab1
[auth] Added new widget ui
2017-09-29 12:16:28 +02:00
Matthias Kuhn
0fbdb04594
API break documentation
2017-09-29 10:58:20 +02:00
Matthias Kuhn
050119c2ba
Add test
2017-09-29 10:58:20 +02:00
Matthias Kuhn
a97d846471
Single parameter version of represent_value
...
Becuase `represent_value("fieldname")` is much shorter to write and in 98%
there is no need to specify the name separately as
`represent_value("fieldname", 'fieldname')`.
2017-09-29 10:58:18 +02:00
Matthias Kuhn
b238103cbc
Deal with QGIS' need to talk
2017-09-29 10:42:57 +02:00
Alessandro Pasotti
91d7a9b611
[auth] New authentication settings widget
2017-09-29 10:33:22 +02:00
Blottiere Paul
c5ed92ca8d
Translate error message in exception
2017-09-29 09:30:20 +01:00
Blottiere Paul
203e81fa6b
Add tests
2017-09-29 09:30:20 +01:00
Blottiere Paul
54137b751c
Fix OGC test getfeatureinfo:invalid-query_layers
2017-09-29 09:30:20 +01:00