Access method for getting id of a user
authorMarek Marecki <marekjm@ozro.pw>
Sun, 23 Apr 2017 14:18:30 +0000 (16:18 +0200)
committerMarek Marecki <marekjm@ozro.pw>
Sun, 23 Apr 2017 14:18:30 +0000 (16:18 +0200)
diaspy/people.py

index 7ebf2a32f4d721050ed5270df50062016f9bad00..a37c82c7f00d24f71dd5a1ebf99904569f9245dc 100644 (file)
@@ -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'])