Diff
Differences From Artifact [14f30d1313]:
- File channels/search.py — part of check-in [ebae9e51ac] at 2015-04-21 06:05:56 on branch trunk — Replace old __print__/dbg.XYZ references with new log.XYZ() wrapper. (user: mario, size: 25663) [annotate] [blame] [check-ins using]
To Artifact [21f830ba0a]:
- File channels/search.py — part of check-in [363dce5eb9] at 2015-04-26 15:35:21 on branch trunk — Cover most catched exceptions with log messages. (user: mario, size: 25759) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
log.PROC("has_search:", cn.module)
try:
add = cn.update_streams(cat=None, search=self.q)
for row in add:
row["genre"] = cn.meta["title"] + " " + row.get("genre", "")
entries += add
except:
continue
#main.status(main, 1.0 * i / 15)
uikit.do(self.show_results, entries)
# search text edited in text entry box
def quicksearch_set(self, w, *eat, **up):
| > | 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
log.PROC("has_search:", cn.module)
try:
add = cn.update_streams(cat=None, search=self.q)
for row in add:
row["genre"] = cn.meta["title"] + " " + row.get("genre", "")
entries += add
except:
log.WARN("server_search: update_streams error in {}:".format(cn.module), e)
continue
#main.status(main, 1.0 * i / 15)
uikit.do(self.show_results, entries)
# search text edited in text entry box
def quicksearch_set(self, w, *eat, **up):
|
| ︙ | ︙ |