mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-24 16:14:45 +00:00
Display warnings in result column.
This commit is contained in:
parent
e5518f799a
commit
0dd5cfd12d
2 changed files with 9 additions and 3 deletions
|
|
@ -11,6 +11,8 @@ Changes:
|
|||
Closes: SF bug #3297243
|
||||
- gui: Display the number of selected rows as status message.
|
||||
Closes: SF bug #3297247
|
||||
- gui: Display warnings in result column.
|
||||
Closes: SF bug #3298036
|
||||
- doc: Document the ability to search for URLs with --warning-regex.
|
||||
Closes: SF bug #3297248
|
||||
|
||||
|
|
|
|||
|
|
@ -60,14 +60,18 @@ class UrlItem (object):
|
|||
if self.url_data.valid:
|
||||
if self.url_data.warnings:
|
||||
self.result_color = QtCore.Qt.darkYellow
|
||||
text = u"\n".join(x[1] for x in self.url_data.warnings)
|
||||
result = u"Warning: %s" % strformat.limit(text, length=25)
|
||||
else:
|
||||
self.result_color = QtCore.Qt.darkGreen
|
||||
result = u"Valid"
|
||||
result = u"Valid"
|
||||
if self.url_data.result:
|
||||
result += u": %s" % self.url_data.result
|
||||
else:
|
||||
self.result_color = QtCore.Qt.darkRed
|
||||
result = u"Error"
|
||||
if self.url_data.result:
|
||||
result += u": %s" % self.url_data.result
|
||||
if self.url_data.result:
|
||||
result += u": %s" % self.url_data.result
|
||||
# Parent URL
|
||||
if self.url_data.parent_url:
|
||||
parent = u"%s%s%s" % (self.url_data.parent_url,
|
||||
|
|
|
|||
Loading…
Reference in a new issue