diff options
author | James Meyer <james.meyer@operamail.com> | 2013-01-23 23:47:52 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2013-01-23 23:47:52 (GMT) |
commit | 0c7b0476404d7ae5a2e61acbb9c36346f0a9ee84 (patch) | |
tree | 800c08984377837f98df26e93c1696b79f458c72 /abs | |
parent | 5fd9752d7444750a3bb4222ed15c8ddf6db858fe (diff) | |
download | linhes_pkgbuild-0c7b0476404d7ae5a2e61acbb9c36346f0a9ee84.zip linhes_pkgbuild-0c7b0476404d7ae5a2e61acbb9c36346f0a9ee84.tar.gz linhes_pkgbuild-0c7b0476404d7ae5a2e61acbb9c36346f0a9ee84.tar.bz2 |
supplemental-web: list_cardmap.py, add hyperlinks to network devices in output for display on the local website.
refs #898
Diffstat (limited to 'abs')
-rw-r--r-- | abs/core/supplemental-web/PKGBUILD | 2 | ||||
-rwxr-xr-x | abs/core/supplemental-web/contents/list_cardmap.py | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/abs/core/supplemental-web/PKGBUILD b/abs/core/supplemental-web/PKGBUILD index 3cd3196..e5c192f 100644 --- a/abs/core/supplemental-web/PKGBUILD +++ b/abs/core/supplemental-web/PKGBUILD @@ -1,7 +1,7 @@ pkgbase=supplemental-web pkgname=('supplemental-web' 'supplemental-web-slave') pkgver=1.0 -pkgrel=41 +pkgrel=42 arch=('i686' 'x86_64') backup=('extra.cfg.txt') diff --git a/abs/core/supplemental-web/contents/list_cardmap.py b/abs/core/supplemental-web/contents/list_cardmap.py index 16349b7..cca2b8c 100755 --- a/abs/core/supplemental-web/contents/list_cardmap.py +++ b/abs/core/supplemental-web/contents/list_cardmap.py @@ -103,16 +103,25 @@ for statictuner in mbelist: print "Couldn't open tuner map" print "</br>" else: + ceton_url = None + hdhr_url = None if statictuner[0] == "hdhr": hdhr_url = statictuner[1].split("-")[-1] + elif statictuner[0] == "infinitv": + ceton_port = statictuner[3].strip() + ceton_url = "http://%s:%s" %(hostname,ceton_port) - print "<li> %s  %s" %(statictuner[1] ,statictuner[0]) + #print "<li> %s  %s" %(statictuner[1] ,statictuner[0]) + print "<li> %s  " %(statictuner[1]) print "</br>" print " static device node: %s" %statictuner[2] if hdhr_url: print "</br>" print ' device webpage: <a href="http://%s">http://%s</a> ' %(hdhr_url.strip(),hdhr_url.strip()) + if ceton_url: + print "</br>" + print ' device webpage: <a href="%s">%s</a> ' %(ceton_url.strip(),ceton_url.strip()) print "</br>" print "</br>" |