Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@iso_register('DE-NI')
class LowerSaxony(Germany):
'Lower Saxony'
include_reformation_day_2018 = True
@iso_register('DE-NW')
class NorthRhineWestphalia(Germany):
'North Rhine-Westphalia'
include_corpus_christi = True
include_all_saints = True
@iso_register('DE-RP')
class RhinelandPalatinate(Germany):
'Rhineland-Palatinate'
include_corpus_christi = True
include_all_saints = True
@iso_register('DE-SL')
class Saarland(Germany):
'Saarland'
include_corpus_christi = True
include_assumption = True
include_all_saints = True
@iso_register('DE-SN')
It's handled via the variable_days because it can be activated
depending on the Länder or the year (see #150).
"""
day = date(year, 10, 31)
return (day, "Reformation Day")
def get_variable_days(self, year):
days = super().get_variable_days(year)
if self.include_reformation_day(year):
days.append(self.get_reformation_day(year))
return days
@iso_register('DE-BW')
class BadenWurttemberg(Germany):
"Baden-Wuerttemberg"
include_epiphany = True
include_corpus_christi = True
include_all_saints = True
@iso_register('DE-BY')
class Bavaria(Germany):
'Bavaria'
include_epiphany = True
include_corpus_christi = True
include_all_saints = True
include_assumption = True
@iso_register('DE-ST')
class SaxonyAnhalt(Germany):
'Saxony-Anhalt'
include_epiphany = True
all_time_include_reformation_day = True
@iso_register('DE-SH')
class SchleswigHolstein(Germany):
'Schleswig-Holstein'
include_reformation_day_2018 = True
@iso_register('DE-TH')
class Thuringia(Germany):
'Thuringia'
all_time_include_reformation_day = True
@iso_register('DE-HE')
class Hesse(Germany):
'Hesse'
include_corpus_christi = True
@iso_register('DE-MV')
class MecklenburgVorpommern(Germany):
'Mecklenburg-Western Pomerania'
all_time_include_reformation_day = True
@iso_register('DE-NI')
class LowerSaxony(Germany):
'Lower Saxony'
include_reformation_day_2018 = True
@iso_register('DE-NW')
class NorthRhineWestphalia(Germany):
'North Rhine-Westphalia'
include_corpus_christi = True
include_all_saints = True
@iso_register('DE-RP')
class RhinelandPalatinate(Germany):
'Rhineland-Palatinate'
def get_liberation_day(self, year):
day = date(year, 5, 8)
return (day, "Liberation Day")
def get_variable_days(self, year):
days = super().get_variable_days(year)
if year >= 2019:
days.append(self.get_international_womens_day(year))
if year == 2020:
days.append(self.get_liberation_day(year))
return days
@iso_register('DE-BB')
class Brandenburg(Germany):
'Brandenburg'
include_easter_sunday = True
all_time_include_reformation_day = True
@iso_register('DE-HB')
class Bremen(Germany):
'Bremen'
include_reformation_day_2018 = True
@iso_register('DE-HH')
class Hamburg(Germany):
'Hamburg'
include_reformation_day_2018 = True
@iso_register('DE-HB')
class Bremen(Germany):
'Bremen'
include_reformation_day_2018 = True
@iso_register('DE-HH')
class Hamburg(Germany):
'Hamburg'
include_reformation_day_2018 = True
@iso_register('DE-HE')
class Hesse(Germany):
'Hesse'
include_corpus_christi = True
@iso_register('DE-MV')
class MecklenburgVorpommern(Germany):
'Mecklenburg-Western Pomerania'
all_time_include_reformation_day = True
@iso_register('DE-NI')
class LowerSaxony(Germany):
'Lower Saxony'
include_reformation_day_2018 = True
if year >= 2019:
days.append(self.get_international_womens_day(year))
if year == 2020:
days.append(self.get_liberation_day(year))
return days
@iso_register('DE-BB')
class Brandenburg(Germany):
'Brandenburg'
include_easter_sunday = True
all_time_include_reformation_day = True
@iso_register('DE-HB')
class Bremen(Germany):
'Bremen'
include_reformation_day_2018 = True
@iso_register('DE-HH')
class Hamburg(Germany):
'Hamburg'
include_reformation_day_2018 = True
@iso_register('DE-HE')
class Hesse(Germany):
'Hesse'
include_corpus_christi = True
def get_variable_days(self, year):
days = super().get_variable_days(year)
days.append(self.get_repentance_day(year))
return days
@iso_register('DE-ST')
class SaxonyAnhalt(Germany):
'Saxony-Anhalt'
include_epiphany = True
all_time_include_reformation_day = True
@iso_register('DE-SH')
class SchleswigHolstein(Germany):
'Schleswig-Holstein'
include_reformation_day_2018 = True
@iso_register('DE-TH')
class Thuringia(Germany):
'Thuringia'
all_time_include_reformation_day = True
@iso_register('DE-HH')
class Hamburg(Germany):
'Hamburg'
include_reformation_day_2018 = True
@iso_register('DE-HE')
class Hesse(Germany):
'Hesse'
include_corpus_christi = True
@iso_register('DE-MV')
class MecklenburgVorpommern(Germany):
'Mecklenburg-Western Pomerania'
all_time_include_reformation_day = True
@iso_register('DE-NI')
class LowerSaxony(Germany):
'Lower Saxony'
include_reformation_day_2018 = True
@iso_register('DE-NW')
class NorthRhineWestphalia(Germany):
'North Rhine-Westphalia'
include_corpus_christi = True
'North Rhine-Westphalia'
include_corpus_christi = True
include_all_saints = True
@iso_register('DE-RP')
class RhinelandPalatinate(Germany):
'Rhineland-Palatinate'
include_corpus_christi = True
include_all_saints = True
@iso_register('DE-SL')
class Saarland(Germany):
'Saarland'
include_corpus_christi = True
include_assumption = True
include_all_saints = True
@iso_register('DE-SN')
class Saxony(Germany):
'Saxony'
all_time_include_reformation_day = True
def get_repentance_day(self, year):
"Wednesday before November 23"
day = date(year, 11, 22)