summaryrefslogtreecommitdiff
path: root/gpscap.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-30 05:12:54 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-30 05:12:54 -0400
commit0d6150e6343c51dbf24937fdc7809ecb620da7f1 (patch)
treeba8327c5a2d8e27721a861b01f51b3b76f0561f3 /gpscap.py
parentc6d6871c6db02ca631876fd9464715df733b7500 (diff)
downloadgpsd-0d6150e6343c51dbf24937fdc7809ecb620da7f1.tar.gz
Better recording of configuration sanity.
Diffstat (limited to 'gpscap.py')
-rw-r--r--gpscap.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gpscap.py b/gpscap.py
index 6127217e..49eaea62 100644
--- a/gpscap.py
+++ b/gpscap.py
@@ -118,7 +118,7 @@ class GPSDictionary(ConfigParser.RawConfigParser):
testfield += "<img title='Have regression test' src='regression.png' alt='Regression-test icon'>"
else:
testfield += tested
- if self.has_option(dev, "noconfigure"):
+ if self.has_option(dev, "configurable") and self.get(dev, "configurable") == 'insane':
testfield += "<img title='Requires -b option' src='noconfigure.png' alt='No-configure icon'>"
if self.get(dev, "rating") == "excellent":
testfield += "<img src='star.png' alt='Star icon'><img src='star.png' alt='Star icon'><img src='star.png' alt='Star icon'><img src='star.png' alt='Star icon'>"
@@ -142,8 +142,7 @@ class GPSDictionary(ConfigParser.RawConfigParser):
else:
notes = ""
if self.has_option(dev, "submitter"):
- notes += " Reported by %s." % self.get(dev, "submitter")
- notes = notes.replace("@", "&#x40;").replace("<", "&lt;").replace(">", "&gt;")
+ notes += " Reported by %s." % self.get(dev, "submitter").replace("@", "&#x40;").replace("<", "&lt;").replace(">", "&gt;")
ofp.write("<td>%s</td>\n" % notes)
ofp.write("</tr>\n")
ofp.write("</table>\n")