Skip to content

Commit

Permalink
Renaming to qmaproxy to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Jan 10, 2024
1 parent 2e30440 commit d658777
Show file tree
Hide file tree
Showing 19 changed files with 8 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions g3w-admin/mapproxy/apps.py → g3w-admin/qmapproxy/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

class MapproxyConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'mapproxy'
verbose_name = 'Mapproxy Caching'
name = 'qmapproxy'
verbose_name = 'Mapproxy Caching Integration'

def ready(self):

# import signal handlers
import mapproxy.receivers
import qmapproxy.receivers

from django.conf import settings

Expand All @@ -50,7 +50,7 @@ def ready(self):
if not os.access(settings.MAPPROXY_BRIDGE_SHARED_FOLDER_PATH, os.R_OK | os.W_OK):
raise ImproperlyConfigured('MAPPROXY_BRIDGE_SHARED_FOLDER_PATH setting is not readable and writeable')

spec = importlib.util.spec_from_file_location(module_name, "mapproxy/bridges/%s.py" % module_name)
spec = importlib.util.spec_from_file_location(module_name, "qmapproxy/bridges/%s.py" % module_name)
module = importlib.util.module_from_spec(spec)
sys.modules[module_name] = module
spec.loader.exec_module(module)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Migration(migrations.Migration):

dependencies = [
('qdjango', '0115_project_geocoding_providers'),
('mapproxy', '0001_initial'),
('qmapproxy', '0001_initial'),
]

operations = [
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ def base_layer_attr(self):

def invalidate_cache(self):

bridge_implementation = apps.get_app_config('mapproxy').bridge_implementation
bridge_implementation = apps.get_app_config('qmapproxy').bridge_implementation
bridge_implementation.invalidate_cache(self)

def delete_cache(self):

bridge_implementation = apps.get_app_config('mapproxy').bridge_implementation
bridge_implementation = apps.get_app_config('qmapproxy').bridge_implementation
bridge_implementation.delete_cache(self)


Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from core.signals import load_layer_actions, after_serialized_project_layer
from qdjango.signals import reading_layer_model
from qdjango.models import Layer
from mapproxy.models import G3WMapproxyLayer
from qmapproxy.models import G3WMapproxyLayer

import logging

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d658777

Please sign in to comment.