gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-auditor] branch master updated: JS to add auditor


From: gnunet
Subject: [GNUnet-SVN] [taler-auditor] branch master updated: JS to add auditor
Date: Tue, 28 Mar 2017 08:34:08 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository auditor.

The following commit(s) were added to refs/heads/master by this push:
     new 7befb5c  JS to add auditor
7befb5c is described below

commit 7befb5c005e0263c462323e09650ba9933483f94
Author: Florian Dold <address@hidden>
AuthorDate: Tue Mar 28 08:34:00 2017 +0200

    JS to add auditor
---
 index.html.j2 | 10 ++++++++++
 template.py   |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/index.html.j2 b/index.html.j2
index 93a5f46..c3e5e78 100644
--- a/index.html.j2
+++ b/index.html.j2
@@ -33,6 +33,16 @@
       padding: 0.5em;
     }
   </style>
+  <script>
+  function addAuditor() {
+    taler.addAuditor({
+      url: "{{ auditor_url }}",
+      currency: "{{ currency }}",
+      auditorPub: "{{ auditor_pub }}",
+      expirationStamp: (new Date(2027, 1)).getTime(),
+    });
+  }
+  </script>
 </head>
 
 <body>
diff --git a/template.py b/template.py
index c731c9c..41d5945 100755
--- a/template.py
+++ b/template.py
@@ -17,6 +17,7 @@ import glob
 import codecs
 import os
 import os.path
+import subprocess
 
 env = 
jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
         extensions=["jinja2.ext.i18n"],
@@ -33,6 +34,7 @@ default_ctx["intro_url"] = 
os.environ.get("TALER_ENV_URL_INTRO", "#")
 default_ctx["bank_url"] = os.environ.get("TALER_ENV_URL_BANK", "#")
 default_ctx["auditor_url"] = os.environ.get("TALER_ENV_URL_AUDITOR", "#")
 default_ctx["currency"] = os.environ.get("TALER_CONFIG_CURRENCY", "??")
+default_ctx["auditor_pub"] = subprocess.check_output(["gnunet-ecc", "-p", 
os.path.expanduser("~/.local/share/taler/auditor/offline-keys/auditor.priv")])
 
 
 for in_file in glob.glob("*.j2"):

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]