Nyall Dawson
11c1a88da1
Update python/plugins/db_manager/db_plugins/vlayers/connector.py
...
Co-authored-by: Nicolas Godet <39594821+nicogodet@users.noreply.github.com>
2025-07-23 03:40:32 +00:00
TiGIS Sagl
5889241305
Fix missing attribute connection in VLayerConnector during init
...
This fix initialize the two variabiles connection and _uri in VLayerConnector as it is implemented in all the other db_plugins. This fix avoid a crash when __del__ is called in the class DBConnector that check is connection is null which does not exist in VLayerConnector.
2025-07-23 03:40:32 +00:00
Denis Rouzaud
0f032e5f2d
run pre-commit on all files
2024-11-29 15:38:02 +01:00
Alexander Bruy
b851e7cbe7
fix use of deprecated API in DB Manager ( fix #54916 )
2024-01-25 06:06:16 +10:00
Nyall Dawson
c16a1e2b3d
Update enums
2024-01-19 19:44:48 +10:00
Etienne Trimaille
8f33d5ee70
Upgrade DBManager and Grass plugins to Python 3.X
2023-04-26 08:24:00 +10:00
Andrea Giudiceandrea
828638f661
[DB Manager] Fix No Geometry tables
...
Avoid to add a nonexistent 'geometry' field to the fields list of No Geometry tables.
2021-04-23 08:25:14 +02:00
Andrea Giudiceandrea
2538612a21
[DB Manager] Fix recognition of project layers with Z/M…
...
…or CurvePolygon/MultyCurve/... geometry types as spatial layers.
2021-04-23 08:14:57 +02: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
b6a7a10703
Fix some more python formatting issues, remove more flake exceptions
2020-05-11 11:41:50 +10:00
Nyall Dawson
ac651ee0d9
Followup 8d51a693, fix broken plugins
2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1
missing changes of QgsMapLayer::Type => QgsMapLayerType
2019-03-26 14:09:19 -05:00
Ailurupoda
db06040b60
Change != True to not + getComment and commentTable on main file if not needed only
2019-02-08 10:45:49 +01:00
Ailurupoda
9741515fae
Replace db.connector/self + is None
2019-02-08 08:30:48 +01:00
Ailurupoda
8ed7971626
Another fix try
2019-02-07 17:29:25 +01:00
Ailurupoda
f27ecab62f
Fix travis
2019-02-07 16:44:28 +01:00
Ailurupoda
63c010dbb5
Fix create and delete comment from tableProperties
2019-02-07 09:56:48 +01:00
Ailurupoda
f3dfd97d90
New fix, still some need to be done
2019-02-06 17:37:48 +01:00
Ailurupoda
dff185355d
Fix bug comment on postgres and others management
2019-02-06 10:53:56 +01:00
Ailurupoda
00852f1642
Update oracle, vlayer, spatialite connector.py
2019-01-23 11:20:24 +01:00
Nyall Dawson
149726cfa5
[dbmanager] Fix exception when browsing project layers
2018-11-10 12:30:52 +10:00
Nyall Dawson
f3e9aaf79a
Fix some inefficient python dictionary iteration
2018-10-31 08:42:51 +10:00
Salvatore Larosa
68b7bf6aa8
[dbmanager] porting of dae921c to 3: fixes #16476
2018-02-03 10:53:55 +01:00
Mario Baranzini
78af413dcc
Remove python future compatibility layer
2017-08-07 10:27:15 +02:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Hugo Mercier
f56e6b9d3e
[dbmanager] Fix encoding issues with virtual layers
2017-02-27 10:32:28 +01:00
Martin Dobias
d56a97d4fe
Merge QgsMapLayerRegistry into QgsProject
...
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08:00
Juergen E. Fischer
31df84aa6b
run 2to3 on source
2016-09-21 23:30:04 +02:00
Matthias Kuhn
bb79d13e82
Remove deprecated Qgis::WKBType and API cleanup ( #3325 )
...
* Remove deprecated Qgis::WKBType and API cleanup
Renames QgsWKBTypes to QgsWkbTypes
Replaces usage of the enums:
* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType
Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)
Renames some SSLxxx to SslXxx and URIxxx to UriXxx
* Fix build warnings and simplify type handling
* Add a fixer to rewrite imports
* The forgotten rebase conflictThe forgotten rebase conflicts
* QgsDataSourcURI > QgsDataSourceUri
* QgsWKBTypes > QgsWkbTypes
* Qgis.WKBGeom > QgsWkbTypes.Geom
* Further python fixes
* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions
* Fix tests
* Python 3 updates
* [travis] pull request caching cannot be disabled
so at least use it in r/w mode
* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
Nyall Dawson
1a2231f10c
Rename QGis class to Qgis, for capitalisation consistency
2016-07-21 22:01:38 +10:00
Denis Rouzaud
8071acd064
move PyQt compat folder to python/qgis
2016-04-29 14:10:26 +02:00
Juergen E. Fischer
c55f8b73f0
db_manager: cleanups
2016-03-21 17:00:24 +01:00
Juergen E. Fischer
8bda5c00a5
db_manager: migrate to new style signals
2016-03-15 23:46:54 +01:00
Juergen E. Fischer
c6d921729e
python fixes:
...
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
python/console/console_sci.py:547 QsciScintillaCompat?
python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Werner Macho
6acdfc6e84
improve import handling
2016-03-15 11:14:16 +01:00
Hugo Mercier
942c5e5f73
Fix virtual layer file name handling (in Windows)
2016-02-15 16:44:17 +01:00
Hugo Mercier
8bbdff471c
Fix a bad indentation bug
2016-01-07 15:38:09 +01:00
Hugo Mercier
9e14f09862
Add a plugin to DB Manager to support virtual layers
2015-12-18 19:45:58 +02:00