projects
/
diaspy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af4eb01
)
get_user_info() refactored to use _sessionget()
author
Marek Marecki
<triviuss@gmail.com>
Fri, 29 Mar 2013 10:40:01 +0000
(11:40 +0100)
committer
Marek Marecki
<triviuss@gmail.com>
Fri, 29 Mar 2013 10:40:01 +0000
(11:40 +0100)
diaspy/client.py
patch
|
blob
|
blame
|
history
diff --git
a/diaspy/client.py
b/diaspy/client.py
index d7f036b61e3bddcce42821947c41de249d6718b9..abdd1d986c4895199e73f607ec5ed1f4469f9ddf 100644
(file)
--- a/
diaspy/client.py
+++ b/
diaspy/client.py
@@
-116,7
+116,8
@@
class Client:
:returns: dict -- json formatted user info.
"""
- r = self.session.get('{0}/bookmarklet'.format(self.pod))
+ #r = self.session.get('{0}/bookmarklet'.format(self.pod))
+ r = self._sessionget('bookmarklet')
regex = re.compile(r'window.current_user_attributes = ({.*})')
userdata = json.loads(regex.search(r.text).group(1))
return userdata