Fix: unlink temp fiules for label printing
parent
b821c1da4a
commit
813c425be8
|
@ -79,9 +79,17 @@ class Artikel(WebObject,Persistence):
|
||||||
|
|
||||||
request.getBinaryContentFile().write(pdf)
|
request.getBinaryContentFile().write(pdf)
|
||||||
request.setResponseHeader("content-type","application/pdf")
|
request.setResponseHeader("content-type","application/pdf")
|
||||||
|
|
||||||
|
os.unlink(tmppdf)
|
||||||
|
os.unlink(tmphtml)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
os.system(pcmd.format(tmppdf))
|
os.system(pcmd.format(tmppdf))
|
||||||
|
os.unlink(tmppdf)
|
||||||
|
os.unlink(tmphtml)
|
||||||
|
|
||||||
request.redirect(request.self(-1))
|
request.redirect(request.self(-1))
|
||||||
|
|
||||||
|
|
||||||
tag = WebCallable(method=_tag)
|
tag = WebCallable(method=_tag)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue