Template
forked from CEN-RA/Plugin_QGIS
flake8 and Qt6 fix
This commit is contained in:
@@ -15,7 +15,7 @@ from qgis.PyQt.QtWidgets import QDialog, QMessageBox
|
||||
from qgis.PyQt import QtGui
|
||||
|
||||
# from qgis.core import *
|
||||
from qgis.core import QgsSettings
|
||||
from qgis.core import QgsSettings, Qgis
|
||||
|
||||
try:
|
||||
from .tools.PythonSQL import login_base
|
||||
@@ -98,7 +98,7 @@ class Postgis_Creator(QDialog, EDITOR_CLASS):
|
||||
cur.execute(SQL_schema)
|
||||
cur.execute(SQL_GRANT_SCHEMA)
|
||||
else:
|
||||
iface.messageBar().pushMessage("POSTGRESQL :", "Pas de couche sélectionnée, création refusée.", level=1, duration=30)
|
||||
iface.messageBar().pushMessage("POSTGRESQL :", "Pas de couche sélectionnée, création refusée.", level=Qgis.Warning, duration=30)
|
||||
|
||||
create_contour(self, schema, cur, con, host, port, dbname, user, mdp)
|
||||
create_habita(self, schema, cur, con, host, port, dbname, user, mdp)
|
||||
|
||||
Reference in New Issue
Block a user