Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
plushkatze
foobarpay
Commits
17c57f72
Commit
17c57f72
authored
Jan 27, 2016
by
anthraxx
Browse files
using resource directory again as those files are now used by the project directly
parent
75b37c01
Changes
3
Hide whitespace changes
Inline
Side-by-side
foobarpay/tokens.py
View file @
17c57f72
...
...
@@ -28,7 +28,7 @@ class TokenGenerator(object):
return
base64
.
encodestring
(
f
.
getvalue
()).
decode
(
'utf-8'
)
def
generate
(
self
):
with
open
(
'
misc
/customer_tokens_template.svg'
)
as
f
:
with
open
(
'
resource
/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
)))
misc
/customer_tokens_template.svg
→
resource
/customer_tokens_template.svg
View file @
17c57f72
File moved
misc
/loading_codes-de.svg
→
resource
/loading_codes-de.svg
View file @
17c57f72
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment