Mercurial > ~darius > hgwebdir.cgi > py-iview
comparison iview.py @ 5:f2e0787f52b8 default tip
Tidy up output to be clearer.
- Don't bother the user with XML errors & lack of asset tags.
- Print a header for the channel & series lists.
- Inform the user how to navigate the menus.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Fri, 21 Aug 2009 13:05:59 +0930 |
parents | f914f08d69f5 |
children |
comparison
equal
deleted
inserted
replaced
4:c4188feb8f26 | 5:f2e0787f52b8 |
---|---|
85 nl = xmlp.getElementsByTagName("series")[0] | 85 nl = xmlp.getElementsByTagName("series")[0] |
86 for s in nl.getElementsByTagName("series"): | 86 for s in nl.getElementsByTagName("series"): |
87 try: | 87 try: |
88 self.series.append(Series(s)) | 88 self.series.append(Series(s)) |
89 except ExpatError: | 89 except ExpatError: |
90 print "Unable to parse XML, skipping" | 90 #print "Unable to parse XML, skipping" |
91 continue | 91 continue |
92 except NoAsset: | 92 except NoAsset: |
93 print "No asset tag, skipping" | 93 #print "No asset tag, skipping" |
94 continue | 94 continue |
95 | 95 |
96 class IView(object): | 96 class IView(object): |
97 def __init__(self): | 97 def __init__(self): |
98 # Fetch and parse config URL | 98 # Fetch and parse config URL |