git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tweaks to sobol to make its use simpler: added a prerendered version of the results...
[philo.git]
/
philo
/
contrib
/
sobol
/
search.py
diff --git
a/philo/contrib/sobol/search.py
b/philo/contrib/sobol/search.py
index
6cd577d
..
f1a2c6b
100644
(file)
--- a/
philo/contrib/sobol/search.py
+++ b/
philo/contrib/sobol/search.py
@@
-115,7
+115,8
@@
class Result(object):
context = self.get_extra_context()
context.update({
'title': self.get_title(),
context = self.get_extra_context()
context.update({
'title': self.get_title(),
- 'url': self.get_url()
+ 'url': self.get_url(),
+ 'result': self.result
})
return context
})
return context
@@
-355,9
+356,6
@@
class GoogleSearch(JSONSearch):
def get_result_url(self, result):
return result['unescapedUrl']
def get_result_url(self, result):
return result['unescapedUrl']
-
- def get_result_extra_context(self, result):
- return result
registry.register(GoogleSearch)
registry.register(GoogleSearch)