Compare commits
No commits in common. "1fc0fbbf0a6dd019be7d71a8adf13b8ff96d1806" and "be7934f34a62d0ea0aebdf93bcbf9fe7a768955f" have entirely different histories.
1fc0fbbf0a
...
be7934f34a
@ -8,7 +8,7 @@ Created on: 16.11.20
|
|||||||
from django.http import HttpRequest
|
from django.http import HttpRequest
|
||||||
|
|
||||||
from konova.sub_settings.context_settings import BASE_TITLE, HELP_LINK, BASE_FRONTEND_TITLE
|
from konova.sub_settings.context_settings import BASE_TITLE, HELP_LINK, BASE_FRONTEND_TITLE
|
||||||
from konova.sub_settings.django_settings import EMAIL_REPLY_TO
|
from konova.sub_settings.django_settings import LANGUAGE_CODE
|
||||||
|
|
||||||
|
|
||||||
class BaseContext:
|
class BaseContext:
|
||||||
@ -24,8 +24,7 @@ class BaseContext:
|
|||||||
"language": request.LANGUAGE_CODE,
|
"language": request.LANGUAGE_CODE,
|
||||||
"user": request.user,
|
"user": request.user,
|
||||||
"current_role": None,
|
"current_role": None,
|
||||||
"help_link": HELP_LINK,
|
"help_link": HELP_LINK
|
||||||
"CONTACT_MAIL": EMAIL_REPLY_TO,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add additional context, derived from given parameters
|
# Add additional context, derived from given parameters
|
||||||
|
@ -6,7 +6,6 @@ Created on: 17.12.21
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
from abc import abstractmethod
|
from abc import abstractmethod
|
||||||
from time import sleep
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import xmltodict
|
import xmltodict
|
||||||
@ -123,7 +122,6 @@ class ParcelWFSFetcher(AbstractWFSFetcher):
|
|||||||
spatial_operator: str = "Intersects",
|
spatial_operator: str = "Intersects",
|
||||||
filter_srid: str = None,
|
filter_srid: str = None,
|
||||||
start_index: int = 0,
|
start_index: int = 0,
|
||||||
rerun_on_exception: bool = True
|
|
||||||
):
|
):
|
||||||
""" Fetches features from the WFS using POST
|
""" Fetches features from the WFS using POST
|
||||||
|
|
||||||
@ -161,23 +159,6 @@ class ParcelWFSFetcher(AbstractWFSFetcher):
|
|||||||
{},
|
{},
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check if collection is an exception and does not contain the requested data
|
|
||||||
if len(collection) == 0:
|
|
||||||
exception = content.get(
|
|
||||||
"ows:ExceptionReport",
|
|
||||||
{}
|
|
||||||
)
|
|
||||||
if len(exception) > 0 and rerun_on_exception:
|
|
||||||
# Wait a second before another try
|
|
||||||
sleep(1)
|
|
||||||
self.get_features(
|
|
||||||
typenames,
|
|
||||||
spatial_operator,
|
|
||||||
filter_srid,
|
|
||||||
start_index,
|
|
||||||
rerun_on_exception=False
|
|
||||||
)
|
|
||||||
|
|
||||||
members = collection.get(
|
members = collection.get(
|
||||||
"wfs:member",
|
"wfs:member",
|
||||||
[],
|
[],
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<a href="{% url 'home' %}">{% trans 'Impressum' %}</a>
|
<a href="{% url 'home' %}">{% trans 'Impressum' %}</a>
|
||||||
</span>
|
</span>
|
||||||
<span class="col-sm-auto footer-link">
|
<span class="col-sm-auto footer-link">
|
||||||
<a href="mailto:{{CONTACT_MAIL}}">{% trans 'Contact' %}</a>
|
<a href="{% url 'home' %}">{% trans 'Contact' %}</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user