File tree 2 files changed +1
-13
lines changed
2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change 13
13
from arho_feature_template .qgis_plugin_tools .tools .custom_logging import setup_logger , teardown_logger
14
14
from arho_feature_template .qgis_plugin_tools .tools .i18n import setup_translation
15
15
from arho_feature_template .qgis_plugin_tools .tools .resources import plugin_name
16
-
17
- # from arho_feature_template.utils.misc_utils import get_lambda_address, get_lambda_settings
18
16
from arho_feature_template .utils .misc_utils import get_active_plan_id , get_lambda_settings
19
17
20
18
if TYPE_CHECKING :
@@ -205,8 +203,6 @@ def validate_plan(self):
205
203
"Lambda asetukset" ,
206
204
f"Lambdan isäntä: { lambda_host } \n Lambdan portti: { lambda_port } \n Aktiivinen kaava: { active_plan } " ,
207
205
)
208
- # print(f"Hard Coded Lambda Host: {hc_lambda_host}")
209
- # print(f"Hard Coded Lambda Port: {hc_lambda_port}")
210
206
211
207
def open_settings (self ):
212
208
"""Open the plugin settings dialog."""
Original file line number Diff line number Diff line change 5
5
from qgis .PyQt .QtWidgets import QMessageBox
6
6
7
7
PLUGIN_PATH = os .path .dirname (os .path .dirname (__file__ ))
8
- # LAMBDA_HOST = "localhost"
9
- # LAMBDA_PORT = 5435
10
8
11
9
12
10
def check_layer_changes () -> bool :
@@ -62,18 +60,12 @@ def handle_unsaved_changes() -> bool:
62
60
63
61
def get_active_plan_id ():
64
62
"""Retrieve the active plan ID stored as a project variable."""
65
- # return QgsExpressionContextUtils.projectScope(QgsProject.instance(), "active_plan_id")
66
63
return QgsExpressionContextUtils .projectScope (QgsProject .instance ()).variable ("active_plan_id" )
67
64
68
65
69
66
def get_lambda_settings ():
70
67
"""Retrieve Lambda settings, using defaults if not set."""
71
68
settings = QSettings ("ArhoFeatureTemplate" )
72
69
lambda_host = settings .value ("lambda_host" , "localhost" )
73
- lambda_port = settings .value ("lambda_port" , "8081 " )
70
+ lambda_port = settings .value ("lambda_port" , "8080 " )
74
71
return lambda_host , lambda_port
75
-
76
-
77
- # def get_lambda_address():
78
- # """Returns lambda address."""
79
- # return LAMBDA_HOST, LAMBDA_PORT
You can’t perform that action at this time.
0 commit comments