コード例 #1
0
ファイル: contact.py プロジェクト: ziir/caliopen.api.user
 def collection_get(self):
     results = CoreContact.find_index(self.user, None,
                                      limit=self.get_limit(),
                                      offset=self.get_offset())
     data = [ReturnIndexShortContact.build(x).serialize()
             for x in results['data']]
     return {'contacts': data, 'total': results['total']}
コード例 #2
0
 def collection_get(self):
     results = CoreContact.find_index(self.user,
                                      None,
                                      limit=self.get_limit(),
                                      offset=self.get_offset())
     data = [
         ReturnIndexShortContact.build(x).serialize()
         for x in results['data']
     ]
     return {'contacts': data, 'total': results['total']}