Add code directory for PgDU
authorStephen Frost <sfrost@snowman.net>
Fri, 31 May 2019 20:33:23 +0000 (16:33 -0400)
committerStephen Frost <sfrost@snowman.net>
Fri, 31 May 2019 20:33:23 +0000 (16:33 -0400)
code/__init__.py [new file with mode: 0644]
code/pgduinvoices.py [new file with mode: 0644]
code/skin_settings.py [new file with mode: 0644]
code/skin_urls.py [new file with mode: 0644]

diff --git a/code/__init__.py b/code/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/code/pgduinvoices.py b/code/pgduinvoices.py
new file mode 100644 (file)
index 0000000..125aa74
--- /dev/null
@@ -0,0 +1,32 @@
+import os
+from django.conf import settings
+
+from postgresqleu.util.misc.baseinvoice import BaseInvoice,BaseRefund
+
+class PGDUBase(object):
+    logo = os.path.join(settings.PROJECT_ROOT, '../media/img/PostgreSQL_logo.1color_blue.300x300.png')
+    headertext = """PostgreSQL Down Under
+Unit 8
+66 Bent Street,
+McKinnon
+VIC 3204
+Australia
+"""
+    sendertext = """Your contact: Randal McDonnell
+Function: PostgreSQL Down Under Treasurer
+E-mail: treasurer@pgdu.org"""
+
+    bankinfotext = """Contact treasurer@pgdu.org
+"""
+
+    paymentterms = """
+"""
+
+
+class PGDUInvoice(PGDUBase, BaseInvoice):
+    pass
+
+
+class PGDURefund(PGDUBase, BaseRefund):
+    pass
+
diff --git a/code/skin_settings.py b/code/skin_settings.py
new file mode 100644 (file)
index 0000000..0de574e
--- /dev/null
@@ -0,0 +1,38 @@
+SERVER_EMAIL="webmaster@pgdu.org"
+
+# Local time zone for this installation. Choices can be found here:
+# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
+# although not all choices may be available on all operating systems.
+# If running in a Windows environment this must be set to the same as your
+# system time zone.
+TIME_ZONE = 'Australia/Melbourne'
+
+INVOICE_SENDER_EMAIL="treasurer@pgdu.org"
+MEMBERSHIP_SENDER_EMAIL="treasurer@pgdu.org"
+
+# Organization name
+ORG_NAME="PostgreSQL Down Under"
+ORG_SHORTNAME="PgDU"
+
+# Treasurer email address
+TREASURER_EMAIL="treasurer@pgdu.org"
+
+ENABLE_PG_COMMUNITY_AUTH = True
+
+# Currency parameter
+CURRENCY_ABBREV='AUD'
+CURRENCY_SYMBOL='$'
+CURRENCY_ISO='AUD'
+
+# Module to build PDF invoices
+INVOICE_PDF_BUILDER='pgduinvoices.PGDUInvoice'
+REFUND_PDF_BUILDER='pgduinvoices.PGDURefund'
+
+# Base URLs for generating absolute URLs
+SITEBASE="https://pgdu.org"
+
+# Account numbers used for auto-accounting
+ENABLE_AUTO_ACCOUNTING=True
+ENABLE_MEMBERSHIP=True
+ENABLE_ELECTIONS=True
+
diff --git a/code/skin_urls.py b/code/skin_urls.py
new file mode 100644 (file)
index 0000000..7d49555
--- /dev/null
@@ -0,0 +1 @@
+PRELOAD_URLS= [ ]