summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--postgresqleu/paypal/util.py2
-rwxr-xr-xtools/deploystatic/deploystatic.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/postgresqleu/paypal/util.py b/postgresqleu/paypal/util.py
index 8d28774b..097d812c 100644
--- a/postgresqleu/paypal/util.py
+++ b/postgresqleu/paypal/util.py
@@ -161,7 +161,7 @@ class PaypalAPI(object):
if 'fee_amount' in t['transaction_info']:
r['FEEAMT'] = t['transaction_info']['fee_amount']['value']
- if code in ('T0000', 'T0001', 'T0003', 'T0006', 'T0007', 'T0011', 'T0013'):
+ if code in ('T0000', 'T0001', 'T0003', 'T0006', 'T0007', 'T0011', 'T0013', 'T0700'):
if 'item_details' in t['cart_info']:
r['SUBJECT'] = t['cart_info']['item_details'][0]['item_name']
elif 'transaction_note' in t['transaction_info']:
diff --git a/tools/deploystatic/deploystatic.py b/tools/deploystatic/deploystatic.py
index 73e5eb25..08d3a120 100755
--- a/tools/deploystatic/deploystatic.py
+++ b/tools/deploystatic/deploystatic.py
@@ -408,6 +408,10 @@ if __name__ == "__main__":
# Fetch the current git revision if this is coming out of a git repository
context['githash'] = git_revision
+ # Tell the templates what "now" is
+ context['current_date'] = date.today()
+ context['current_timestamp'] = datetime.now()
+
# Load contexts in override directory, if any
if source.isdir('templates/context.override.d'):
for f in sorted(source.listfiles('templates/context.override.d')):