diff --git a/requirements.txt b/requirements.txt index 4bb879a..4ce4c07 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,3 +5,4 @@ sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 psutil>=1.1.1,<2.0.0 tooz>=1.19.0 # Apache-2.0 PrettyTable>=0.7,<0.8 +Mako>=0.4.0 diff --git a/scalpels/cli/actions/report.py b/scalpels/cli/actions/report.py index 641005e..9b3be64 100644 --- a/scalpels/cli/actions/report.py +++ b/scalpels/cli/actions/report.py @@ -4,10 +4,15 @@ from scalpels.db import api as db_api from prettytable import PrettyTable +from mako.template import Template +from mako.lookup import TemplateLookup +from scalpels import templates +import os def pprint_result(result): - t = PrettyTable(["timestamp", "%s(%s)" % (result.name, result.unit)]) + print " + + + + + + +
+ +