summaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorStephen Frost2019-05-31 20:33:23 +0000
committerStephen Frost2019-05-31 20:33:23 +0000
commitcf62f08bb4a578dd8815e1fe5f30e790021f41d9 (patch)
tree152a2172f5d6ffa5d5e59596d0fd14f0237d8dc4 /code
parent66098881a375a2690fa3439960e42332c51af88c (diff)
Add code directory for PgDU
Diffstat (limited to 'code')
-rw-r--r--code/__init__.py0
-rw-r--r--code/pgduinvoices.py32
-rw-r--r--code/skin_settings.py38
-rw-r--r--code/skin_urls.py1
4 files changed, 71 insertions, 0 deletions
diff --git a/code/__init__.py b/code/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/code/__init__.py
diff --git a/code/pgduinvoices.py b/code/pgduinvoices.py
new file mode 100644
index 0000000..125aa74
--- /dev/null
+++ b/code/pgduinvoices.py
@@ -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
index 0000000..0de574e
--- /dev/null
+++ b/code/skin_settings.py
@@ -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
index 0000000..7d49555
--- /dev/null
+++ b/code/skin_urls.py
@@ -0,0 +1 @@
+PRELOAD_URLS= [ ]