Skip to content

Commit

Permalink
move constants to core
Browse files Browse the repository at this point in the history
  • Loading branch information
springmeyer committed Mar 6, 2024
1 parent 1f4d8ea commit f40105c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
7 changes: 7 additions & 0 deletions felt/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@
LayerExporter,
ZippedExportResult
)
from .constants import ( # noqa
FELT_API_BASE,
FELT_API_URL,
PRIVACY_POLICY_URL,
TOS_URL,
SIGNUP_URL
)
from .multi_step_feedback import MultiStepFeedback # noqa
from .meta import PLUGIN_METADATA_PARSER # noqa
from .exceptions import LayerPackagingException # noqa
Expand Down
2 changes: 1 addition & 1 deletion felt/core/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from .meta import PLUGIN_METADATA_PARSER
from .s3_upload_parameters import S3UploadParameters
from .enums import UsageType
from ..constants import (
from .constants import (
FELT_API_URL
)

Expand Down
2 changes: 1 addition & 1 deletion felt/core/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
)

from .pkce import generate_pkce_pair
from ..constants import (
from .constants import (
FELT_API_BASE
)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion felt/gui/authorize_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
)
from qgis.gui import QgsGui

from ..constants import (
from ..core import (
PRIVACY_POLICY_URL,
TOS_URL,
SIGNUP_URL
Expand Down
9 changes: 4 additions & 5 deletions felt/gui/create_map_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@

from .authorization_manager import AUTHORIZATION_MANAGER
from .colored_progress_bar import ColorBar
from ..constants import (
PRIVACY_POLICY_URL,
TOS_URL
)

from .felt_dialog_header import FeltDialogHeader
from .gui_utils import (
GuiUtils,
Expand All @@ -64,7 +61,9 @@
LayerExporter,
LayerSupport,
MapUploaderTask,
Map
Map,
PRIVACY_POLICY_URL,
TOS_URL
)

WIDGET, _ = uic.loadUiType(GuiUtils.get_ui_file_path('create_map.ui'))
Expand Down

0 comments on commit f40105c

Please sign in to comment.