Beispiel #1
0
 def _upload(self, urls, source, token=None, to_master=True, **kwargs):
     urls = [self._resolve(proxy_url(url,
                                     proxy=self.proxy,
                                     meth='PUT',
                                     to_master=to_master))
             for url in iterify(urls)]
     return upload(urls, source, token=self._token(url, token, 'PUT'), **kwargs)
Beispiel #2
0
 def _upload(self, urls, source, token=None, **kwargs):
     urls = [
         self._resolve(self._maybe_proxy(url, method='PUT'))
         for url in iterify(urls)
     ]
     return upload(urls,
                   source,
                   token=self._token(url, token, 'PUT'),
                   **kwargs)
Beispiel #3
0
 def _upload(self, urls, retries=10):
     urls = [(self._maybe_proxy(url, method='PUT'), fd) for url, fd in urls]
     return upload(urls, retries=retries)
Beispiel #4
0
 def _upload(self, urls, source, token=None, **kwargs):
     urls = [self._resolve(self._maybe_proxy(url, method='PUT'))
             for url in iterify(urls)]
     return upload(urls, source, token=self._token(url, token, 'PUT'), **kwargs)
Beispiel #5
0
 def _upload(self, urls, source, **kwargs):
     urls = [self._maybe_proxy(url, method='PUT') for url in iterify(urls)]
     return upload(urls, source, **kwargs)