예제 #1
0
파일: people.py 프로젝트: kensanata/diaspy
    def fetchprofile(self):
        """Fetches user data.
		"""
        data = search.Search(self._connection).user(self.handle())
        if not data:
            raise errors.UserError(
                'user with handle "{0}" has not been found on pod "{1}"'.
                format(self.handle(), self._connection.pod))
        else:
            self.data.update(data[0])
예제 #2
0
 def fetchprofile(self):
     """Fetches user data.
     """
     data = search.Search(self._connection).user(self['handle'])
     if not data:
         warnings.warn(
             'user with handle "{0}" has not been found on pod "{1}"'.
             format(self['handle'], self._connection.pod))
     else:
         self.data = data[0]
예제 #3
0
파일: people.py 프로젝트: svbergerem/diaspy
 def fetchprofile(self):
     """Fetches user data.
     """
     data = search.Search(self._connection).user(self.handle)[0]
     self.data = data