From: Marek Marecki <marekjm@ozro.pw> Date: Sun, 23 Apr 2017 14:18:30 +0000 (+0200) Subject: Access method for getting id of a user X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e2c368a86215012702d38549a52e7f1a2c7c676a;p=diaspy.git Access method for getting id of a user --- diff --git a/diaspy/people.py b/diaspy/people.py index 7ebf2a3..a37c82c 100644 --- 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'])