projects
/
diaspy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec1685a
)
Access method for getting id of a user
author
Marek Marecki
<marekjm@ozro.pw>
Sun, 23 Apr 2017 14:18:30 +0000
(16:18 +0200)
committer
Marek Marecki
<marekjm@ozro.pw>
Sun, 23 Apr 2017 14:18:30 +0000
(16:18 +0200)
diaspy/people.py
patch
|
blob
|
blame
|
history
diff --git
a/diaspy/people.py
b/diaspy/people.py
index 7ebf2a32f4d721050ed5270df50062016f9bad00..a37c82c7f00d24f71dd5a1ebf99904569f9245dc 100644
(file)
--- a/
diaspy/people.py
+++ b/
diaspy/people.py
@@
-87,6
+87,9
@@
class User():
def guid(self):
return self.data.get('guid', '<guid missing>')
+ def id(self):
+ return self.data['id']
+
def _fetchstream(self):
self.stream = Outer(self._connection, guid=self['guid'])