Пример #1
0
 def remote_meta(self):
     """Remote metadata dict."""
     if not self._remote_meta:
         self._remote_meta = get_json_response(API_DETAIL, {
             'uuid': self.uuid,
             'shell_version': '.'.join(str(v) for v in GNOME_SHELL_VERSION),
         })
     return self._remote_meta
Пример #2
0
 def remote_meta(self):
     """Remote metadata dict."""
     if not self._remote_meta:
         self._remote_meta = get_json_response(
             API_DETAIL, {
                 'uuid': self.uuid,
                 'shell_version': '.'.join(
                     str(v) for v in GNOME_SHELL_VERSION),
             })
     return self._remote_meta
Пример #3
0
 def search(self, term):
     query = {
         'shell_version': '.'.join(str(v) for v in GNOME_SHELL_VERSION),
         'search': term,
     }
     response = get_json_response(API_SEARCH, query)
     found = []
     for remote_meta in response['extensions']:
         ext = Extension(remote_meta['uuid'])
         ext.remote_meta = remote_meta
         found.append(ext)
     return found
Пример #4
0
 def search(self, term):
     query = {
         'shell_version': '.'.join(str(v) for v in GNOME_SHELL_VERSION),
         'search': term,
     }
     response = get_json_response(API_SEARCH, query)
     found = []
     for remote_meta in response['extensions']:
         ext = Extension(remote_meta['uuid'])
         ext.remote_meta = remote_meta
         found.append(ext)
     return found