* __bug__: `diaspy` has problems/can't connect to pods using SNI (this is an issue with requests/urllib3/python),
+----
+
+#### Version `0.4.1` (2013-09-):
+
+* __new__: `diaspy.people.User._fetchstream()` method,
+
+
----
#### Version `0.4.1` (2013-09-12):
def __repr__(self):
return '{0} ({1})'.format(self['diaspora_name'], self['guid'])
+ def _fetchstream(self):
+ self.stream = Outer(self._connection, location='people/{0}.json'.format(self['guid']))
+
def _fetch(self, fetch):
"""Fetch user posts or data.
"""
request = request.json()
if not len(request): raise errors.UserError('cannot extract user data: no posts to analyze')
self.data = self._finalize_data(request[0]['author'])
- self.stream = Outer(self._connection, location='people/{0}.json'.format(self['guid']))
def fetchhandle(self, protocol='https'):
"""Fetch user data and posts using Diaspora handle.
pod, user = sephandle(self['handle'])
request = self._connection.get('{0}://{1}/u/{2}.json'.format(protocol, pod, user), direct=True)
self._postproc(request)
+ self._fetchstream()
def fetchguid(self):
"""Fetch user data and posts using guid.
if self['guid']:
request = self._connection.get('people/{0}.json'.format(self['guid']))
self._postproc(request)
+ self._fetchstream()
else:
raise errors.UserError('GUID not set')