Commit 5659d72f authored by Tristan Cavelier's avatar Tristan Cavelier

logging

parent f96243ec
......@@ -44,7 +44,7 @@ from cloudooo.handler.ooo.mimemapper import mimemapper
def log(s):
import os
os.system("{ date | head -c -1 ; echo '%s' ; } >> ~/tmp/tristan.log" % s.replace("'", r"'\''"))
os.system("{ date | head -c -1 ; echo ' %s' ; } >> ~/tmp/tristan.log" % (s.replace("'", r"'\''"),))
class HandlerNotFound(Exception):
pass
......@@ -123,6 +123,7 @@ class Manager(object):
source_format in ("html", "text/html") and
destination_format in ("pdf", "application/pdf")):
from cloudooo.handler.wkhtmltopdf.handler import Handler as WkhtmltopdfHandler
log("TRISTAN using wkhtmltopdf")
handler_class = WkhtmltopdfHandler
else:
handler_class = getHandlerClass(source_format,
......
Markdown is supported
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