Skip to content
Snippets Groups Projects
Commit 679538f4 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Move CALENDAR_TIMEZONE_MAP to new section

CALENDAR_TIMEZONE_MAP is not used for the calendar functionality, but
for the ical export, which is independent.

/close #199
parent b3df54d3
No related branches found
No related tags found
No related merge requests found
......@@ -402,8 +402,7 @@ def check_wiki(
def check_calendar(
CALENDAR_URL, CALENDAR_DEFAULT_DURATION, CALENDAR_MAX_REQUESTS,
CALENDAR_TIMEZONE_MAP):
CALENDAR_URL, CALENDAR_DEFAULT_DURATION, CALENDAR_MAX_REQUESTS):
from calendarpush import Client, CalendarException
try:
client = Client(url=CALENDAR_URL)
......@@ -413,6 +412,10 @@ def check_calendar(
CALENDAR_URL))
def check_timezone(CALENDAR_TIMEZONE_MAP):
pass
CONFIG_SECTIONS = [
ConfigSection(
name="Database",
......@@ -897,6 +900,13 @@ CONFIG_SECTIONS = [
description=(
"Number of retries before giving a connection attempt up. "
"Some CalDAV servers reply randomly with errors.")),
],
check=check_calendar,
deactivatable=True,
description="CalDAV settings"),
ConfigSection(
name="TIMEZONE",
entries=[
ConfigEntry(
name="CALENDAR_TIMEZONE_MAP",
default={
......@@ -906,9 +916,8 @@ CONFIG_SECTIONS = [
required=False, internal=False,
description="Timezone abbreviation map. Add as needed."),
],
check=check_calendar,
deactivatable=True,
description="CalDAV settings"),
check=check_timezone,
description="Settings for translating timezone information."),
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment