68 Commits

Author SHA1 Message Date
Nyall Dawson
9fe90fdca1 Fix new flake8 warnings 2024-08-30 05:47:31 +10:00
Nyall Dawson
98f3ca0650 Don't leak mapping functions into core 2024-08-19 11:16:01 +02:00
Nyall Dawson
1c119bde15 Avoid leaking processing repr into core 2024-08-19 11:16:01 +02:00
Nyall Dawson
fa518f6795 Don't leak fromFunction into core 2024-08-19 11:16:01 +02:00
Nyall Dawson
3dbbb16aa6 Don't leak range repr functions into qgis.core 2024-08-19 11:16:01 +02:00
Nyall Dawson
de01eec1d7 Fix formatting of QgsTask.fromFunction docs
Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/11
2024-08-19 11:16:01 +02:00
Nyall Dawson
32c46db849 Update python/core/additions/qgsfeature.py
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
2024-07-19 06:12:25 +10:00
Nyall Dawson
2f10455db2 Fix __geo_interface__ should use None for NULL values
Fixes #58084
2024-07-19 06:12:25 +10:00
Nyall Dawson
c16a1e2b3d Update enums 2024-01-19 19:44:48 +10:00
Germap
43511aced2
Update qgsfunction.py, homogenize referenced_columns subsection 2023-11-18 17:53:29 -05:00
Germap
e69f2bf0f8
Update python/core/additions/qgsfunction.py
Avoid using 'slightly' since this could be a considerable performance improvement depending on the provider.

Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
2023-11-17 17:36:23 -05:00
Germán Carrillo
ac80a3782e Avoid None as value for referenced_columns (use empty list instead) in qgsfunction.py documentation 2023-11-02 16:31:45 +01:00
Denis Rouzaud
c76b86e26b
move enum QgsMapLayerProxyModel::Filter to Qgis (#54891) 2023-10-11 13:57:01 +02:00
Denis Rouzaud
30a641111d
Merge pull request #52847 from 3nids/settings-treewidget
Settings editors
2023-05-02 21:31:35 +02:00
Denis Rouzaud
d888ee2a70
use public method 2023-05-01 09:57:09 +02:00
Yoann Quenach de Quivillic
ccb868f626 Harmonize doc 2023-04-29 14:25:11 +02:00
Yoann Quenach de Quivillic
947931ad2b Fix qgsfunction decorator args handling 2023-04-29 14:25:11 +02:00
Denis Rouzaud
91effce867 fix import 2023-02-03 09:05:37 +01:00
Denis Rouzaud
34eb0826c3 change QgsSettings to QgsSettingsTree in code base 2023-02-03 09:05:37 +01:00
Denis Rouzaud
f9e21602d2
add name method for settings + improve dox (#51661) 2023-01-31 15:48:08 +00:00
Denis Rouzaud
7d628998d5 follow-up rename QgsSettingsTreeElement to QgsSettingsTreeNode 2023-01-30 10:03:39 +10:00
Denis Rouzaud
dd99bb02ac avoid API break in method signature 2023-01-17 06:56:57 +01:00
Denis Rouzaud
44039d164c sipify them all 2023-01-16 09:00:49 +01:00
Harrissou Sant-anna
0dffc593e2 Add missing blank line to allow parameters display in docs 2022-12-31 06:56:48 +10:00
Harrissou Sant-anna
d249049256 make params easier to find in PyQgsSettingsEntryEnumFlag docs 2022-12-16 11:23:02 +01:00
Denis Rouzaud
158cd3174d forward options to base constructor 2022-04-14 08:39:15 +02:00
Denis Rouzaud
3926e97cda pyqgis implementation for Qgis.Settings.Options.SaveEnumFlagAsInt 2022-04-14 08:39:15 +02:00
Denis Rouzaud
378c7f594a apply same changes to PyQgsSettingsEntryEnumFlag 2022-03-08 14:37:59 +01:00
Denis Rouzaud
d3d91950bf fix python implementation of enum/flag setting 2022-03-01 12:09:47 +01:00
Denis Rouzaud
d06b1f1ff9 replace setVariantValue method to avoid API break 2022-03-01 12:09:47 +01:00
Hannes
1877b3634a Show full traceback on Python expression function exception 2022-02-19 09:00:34 +10:00
Denis Rouzaud
d2be87210a
fix PyQGIS API docs building (#43387)
* fix PyQGIS API docs building

The current building of the PyQGIS API doc relies on the fact that the first line is a signature.
If not given, it should be empty.

* Update qgssettingsentry.py
2021-05-25 17:26:56 +02:00
Damiano
221d9f7f01 Fix docstrings 2021-04-27 14:15:56 +02:00
Damiano
1def5e7b94 Python QgsSettingsEnum and Flag unified in QgsSettingsEnumFlag 2021-04-26 15:10:53 +02:00
Damiano
97f1a645f0 Changed SettingsType to scoped enum 2021-04-15 09:58:39 +02:00
Damiano
abb8e80c1f Added functionality to override default value for settings entries 2021-04-14 19:49:57 +02:00
Damiano
9082cfa268 Fixed trailing space 2021-04-14 18:13:51 +02:00
Damiano
4891bd6ebb Added support for settings with keys with multiple dynamic parts 2021-04-14 18:05:41 +02:00
Damiano
9762206731 Removed Settings struct / unified Enum/Flag logic in one base class 2021-04-14 15:41:49 +02:00
Damiano
3c5f9b1e91 Python implementation for QgsSettingsEntryEnum/Flag and fixed docstrings 2021-04-07 14:02:08 +02:00
Nyall Dawson
4fe99d8d6c Add better __repr__ methods for QgsDateTimeRange, QgsDateRange 2021-03-25 08:01:51 +10:00
Nyall Dawson
1040fe8705 Don't silently swallow exceptions in python context managers
Notably this causes processing modules to silently fail to load
without any warnings if the required dependancies (such as pyscopg2)
are not installed
2021-03-04 07:39:47 +10:00
Nyall Dawson
278ccb8e85 Fix crash when trying to use meta enums on some platforms
Keeping references to static meta objects and meta enums around seems
to avoid the crash
2020-11-14 14:37:38 +10:00
Denis Rouzaud
cdc2f7fde8
fix PyQGIS docs for QgsProviderMetadata (#37552)
fixes https://github.com/qgis/pyqgis/issues/55
2020-07-03 11:36:11 +02:00
Nyall Dawson
82c298a703 Show startup profile timings in developer/debugging tools panel
Instead of hiding this information on the console, let's expose it
to users. QGIS startup times have been an ongoing issue for a number
of years, so let's help provide users with some tools to help
track down what's causing these (*hint* it's probably a plugin *hint*)
2020-05-19 04:35:34 +10:00
Matthias Kuhn
a5f557f085 Fix escaping issues 2020-05-05 23:22:12 +02:00
Nyall Dawson
a06e707a15 Better repr for QgsProcessingFeatureSourceDefinition 2020-03-29 05:56:23 +10:00
Juergen E. Fischer
b830a4a448 qgsfunction: replace deprecated inspect.getargspec() to inspect.getfullargspec() 2019-11-07 22:47:08 +01:00
Matthias Kuhn
abf9880182 Cleanup python code 2019-11-02 15:01:59 +01:00
Matthias Kuhn
52f0994bf6 Various fixes 2019-11-02 15:01:59 +01:00