Fix: unlink temp fiules for label printing
parent
b821c1da4a
commit
813c425be8
|
@ -79,10 +79,18 @@ 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)
|
||||
|
||||
def __str__(self):
|
||||
|
|
Loading…
Reference in New Issue