projects
/
diaspy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d640be8
)
Fixed bug in `Search().lookup_user()` now it's `self._connection.get()`
author
Marek Marecki
<triviuss@gmail.com>
Sun, 7 Jul 2013 08:52:24 +0000
(10:52 +0200)
committer
Marek Marecki
<triviuss@gmail.com>
Sun, 7 Jul 2013 08:52:24 +0000
(10:52 +0200)
instead of `self.get()`
diaspy/search.py
patch
|
blob
|
blame
|
history
diff --git
a/diaspy/search.py
b/diaspy/search.py
index 6da1beba09683c2d48c2a0fedc26f156c38c5285..3fd0d086ce5273203c11e8dc8b08cc70dece5b6b 100644
(file)
--- a/
diaspy/search.py
+++ b/
diaspy/search.py
@@
-17,5
+17,13
@@
class Search():
:param string: Handle to search for.
"""
- request = self.get('people', headers={'accept': 'text/html'}, params={'q': handle})
+ request = self.
_connection.
get('people', headers={'accept': 'text/html'}, params={'q': handle})
return request.status_code
+
+ def _query(self, query):
+ """Sends search query to pod.
+
+ :param query: search query
+ :type query: str
+ """
+ pass