Fix: unlink temp fiules for label printing

master
Harald Wolff 2018-03-01 23:42:25 +01:00
parent b821c1da4a
commit 813c425be8
1 changed files with 8 additions and 0 deletions

View File

@ -79,9 +79,17 @@ class Artikel(WebObject,Persistence):
request.getBinaryContentFile().write(pdf)
request.setResponseHeader("content-type","application/pdf")
os.unlink(tmppdf)
os.unlink(tmphtml)
else:
os.system(pcmd.format(tmppdf))
os.unlink(tmppdf)
os.unlink(tmphtml)
request.redirect(request.self(-1))
tag = WebCallable(method=_tag)