summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Weller <ianweller@gmail.com>2008-10-03 19:11:41 -0500
committerIan Weller <ianweller@gmail.com>2008-10-03 19:11:41 -0500
commitf3e637e299e2e9fc01fee362b89e20fb5f9bad4a (patch)
tree6775643703bb79936671e31023c0c4d3a6ef941b
parent40a708b3717df5b6c956d39f6099437470fe3486 (diff)
downloadfedora-business-cards-f3e637e299e2e9fc01fee362b89e20fb5f9bad4a.zip
fedora-business-cards-f3e637e299e2e9fc01fee362b89e20fb5f9bad4a.tar.gz
fedora-business-cards-f3e637e299e2e9fc01fee362b89e20fb5f9bad4a.tar.xz
Add more usability to cmdline
-rw-r--r--fedora_business_cards/frontend.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/fedora_business_cards/frontend.py b/fedora_business_cards/frontend.py
index c9e47c7..05a1317 100644
--- a/fedora_business_cards/frontend.py
+++ b/fedora_business_cards/frontend.py
@@ -146,6 +146,8 @@ def cmdline():
lineno == '3' or lineno == '4' or lineno == '5':
lines[int(lineno)] = newdata
# generate front of business card
+ print "Generating front...",
+ sys.stdout.flush()
xml = generate.gen_front(name, title, lines, options.template)
if options.output == "svg":
export.svg_to_file(xml, options.username+'-front.'+options.output)
@@ -153,9 +155,13 @@ def cmdline():
export.svg_to_pdf_png(xml, options.username+'-front.'+options.output,
options.output, options.dpi)
# generate back of business card
+ print "Generating back...",
+ sys.stdout.flush()
xml = generate.gen_back(options.template)
if options.output == "svg":
export.svg_to_file(xml, options.username+'-back.'+options.output)
else:
export.svg_to_pdf_png(xml, options.username+'-back.'+options.output,
options.output, options.dpi)
+ print "Done."
+ sys.stdout.flush()