Commit 448b6524 authored by MichiK's avatar MichiK Committed by anthraxx
Browse files

Move template

parent 86a5475c
......@@ -28,7 +28,7 @@ class TokenGenerator(object):
return base64.encodestring(f.getvalue()).decode('utf-8')
def generate(self):
with open('resources/customer_tokens_template.svg') as f:
with open('misc/customer_tokens_template.svg') as f:
t = Template(f.read())
with open('customer_tokens_%i.pdf' % time(), 'wb') as f:
f.write(svg2pdf(t.render(make_barcode=self.make_barcode)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment