diff options
author | Magnus Hagander | 2024-06-06 20:42:48 +0000 |
---|---|---|
committer | Magnus Hagander | 2024-06-06 20:42:48 +0000 |
commit | e31329a138522e9ef4c2b2750eb378f6d45fdb9e (patch) | |
tree | 5ffd12371d27e0f65e474c1779a130075edd2195 /tools/deploystatic/deploystatic.py | |
parent | 53eda8fb450280807aad7d5efe229efc3fd8572a (diff) |
Accept paypal code T0700 as a payment
This is one never seen before and seems to be used for shipping labels.
Bring it in and treat it like any other.
Noted by Christophe Pettus, but not his patch - going for a minimalistic
one. This code may need some further refactoring down the road.
Diffstat (limited to 'tools/deploystatic/deploystatic.py')
-rwxr-xr-x | tools/deploystatic/deploystatic.py | 4 |
1 files changed, 4 insertions, 0 deletions
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')): |