Migrate skin specific settings into repository FINAL_PY2
authorMagnus Hagander <magnus@hagander.net>
Mon, 17 Dec 2018 14:11:47 +0000 (15:11 +0100)
committerMagnus Hagander <magnus@hagander.net>
Mon, 17 Dec 2018 14:11:47 +0000 (15:11 +0100)
code/skin_settings.py

index b8cd8071cfc3e211898507bf192bcd3d6e90d4ae..d07d432c5e2de66ac940a5aa868225f55f4d9f62 100644 (file)
@@ -17,10 +17,20 @@ ENABLE_AUTO_ACCOUNTING = True
 
 # Emails
 DEFAULT_EMAIL = "webmaster@postgresql.eu"
+SERVER_EMAIL = "webmaster@postgresql.eu"
 TREASURER_EMAIL = "treasurer@postgresql.eu"
 INVOICE_SENDER_EMAIL = "treasurer@postgresql.eu"
 MEMBERSHIP_SENDER_EMAIL = "webmaster@postgresql.eu"
 
+# Membership
+MEMBERSHIP_LENGTH = 2
+MEMBERSHIP_COST = 10
+def MEMBERSHIP_COUNTRY_VALIDATOR(country):
+    if hasattr(country, 'europecountry'):
+        return True
+    return "Membership in PostgreSQL Europe is available to people living in geographical Europe. Exceptions to this may be provided on a case by case basis by the board. Please contact the board via email if you are seeing this message in error."
+
+
 # Ugh
 EU_VAT = True
 EU_VAT_HOME_COUNTRY = "FR"