mirror of https://github.com/tLDP/python-tldp
match up the detail method on the OutputDirectory with the SourceDocument
This commit is contained in:
parent
45ee1cf4c8
commit
746197d954
|
@ -126,8 +126,10 @@ class OutputDirectory(OutputNamingConvention):
|
||||||
self.logdir = os.path.join(self.dirname, logdir)
|
self.logdir = os.path.join(self.dirname, logdir)
|
||||||
|
|
||||||
def detail(self, widths, verbose, file=sys.stdout):
|
def detail(self, widths, verbose, file=sys.stdout):
|
||||||
template = '{s.status:{w.status}} {s.stem:{w.stem}}'
|
template = ' '.join(('{s.status:{w.status}}',
|
||||||
outstr = template.format(s=self, w=widths)
|
'{u:{w.doctype}}',
|
||||||
|
'{s.stem:{w.stem}}'))
|
||||||
|
outstr = template.format(s=self, w=widths, u="<unknown>")
|
||||||
print(outstr, file=file)
|
print(outstr, file=file)
|
||||||
if verbose:
|
if verbose:
|
||||||
print(' missing source', file=file)
|
print(' missing source', file=file)
|
||||||
|
|
Loading…
Reference in New Issue