Commit 1bd79268 authored by Dennis Baurichter's avatar Dennis Baurichter

Fix typos, mkprints' output etc.

parent b11d6671
......@@ -51,6 +51,8 @@ def print_help(f):
"check-consistency [options] [check1 [check2 ... ]]\n"
" Performs a series of consistency check on the klausurarchiv data base.\n"
" If no checks are selected, all of them are executed.\n"
" See the documentation on klausurarchiv.consistency for details on the\n"
" statistics.\n"
"available checks:\n"
" {allChecks}\n"
"options:\n"
......
......@@ -97,7 +97,7 @@ def entries():
int(entry.lending.in_date[8:10]))
except ValueError:
sys.stderr.write(
"\x1b[33;1mWarning\x1b[30;0m: entry %s in file %s has invalid date\n"
"\x1b[33;1mWarning\x1b[30;0m: entry %s in file %s has invalid in_date\n"
%(entry.lidx,entry.filename))
yield entry,None,anon,0
continue
......
......@@ -26,7 +26,7 @@ folderreg=klausurarchiv.folders.FolderRegistry.Get()
folders=[]
prints=[]
outfile="prints.pdf"
outfile=os.path.join(os.getenv("KA_ROOT"),"prints.pdf")
all_prints={ v.flag: v for v in printreg.scripts_folders }
......@@ -35,16 +35,16 @@ all_prints={ v.flag: v for v in printreg.scripts_folders }
def print_help(f):
f.write(
"mkprints [prints] [options] (path|id)+\n"
" creates a pdf containing printouts for one or more physical folders.\n"
" the kind of printouts to be created can be specified as switches (see\n"
" Creates a PDF containing printouts for one or more physical folders.\n"
" The kind of printouts to be created can be specified as switches (see\n"
" below). If none are set, all prints are created. \n"
"prints:\n"
" {prints}\n"
"options:\n"
" -h|--help\n"
" show this help text and exit normally\n"
" Show this help text and exit normally\n"
" -o|--output <filename>\n"
" set the file name to produce. default: {outfile}\n"
" Set the file name to produce. Default: {outfile}\n"
"".format(
prints="\n ".join([
"%s\n %s"%(v.flag,v.description)
......
......@@ -74,7 +74,7 @@ class AnonymizingClosedLendingProcesses(consistency.ICheck):
if age>60: n_unanon_very_old+=1
items["AnonymizingClosedLendingProcesses.TotlaCount"] = n_total
items["AnonymizingClosedLendingProcesses.TotalCount"] = n_total
items["AnonymizingClosedLendingProcesses.AnonCount"] = n_anon
items["AnonymizingClosedLendingProcesses.IdentCount"] = n_unanon
items["AnonymizingClosedLendingProcesses.IdentCountOld"] = n_unanon_old
......
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