summaryrefslogtreecommitdiffstats
path: root/module/network/Browser.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-04-30 19:16:47 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-04-30 19:16:47 +0200
commit6272b848234d63ce193abc6996b2eec9b2af5cb7 (patch)
tree1f5f963c07fb4d5c3d4a454c40afd4b3025c8b78 /module/network/Browser.py
parentUploadStation & BitshareCom: #295 (diff)
downloadpyload-6272b848234d63ce193abc6996b2eec9b2af5cb7.tar.xz
closed #290, #291, #292
Diffstat (limited to 'module/network/Browser.py')
-rw-r--r--module/network/Browser.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/module/network/Browser.py b/module/network/Browser.py
index 0bf5cf3cf..9020a6de1 100644
--- a/module/network/Browser.py
+++ b/module/network/Browser.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-from os.path import join
from logging import getLogger
from HTTPRequest import HTTPRequest
@@ -74,7 +73,7 @@ class Browser(object):
self._size = self.dl.size
self.dl.abort = True
- def httpDownload(self, url, filename, get={}, post={}, ref=True, cookies=True, chunks=1, resume=False, progressNotify=None, disposition=True):
+ def httpDownload(self, url, filename, get={}, post={}, ref=True, cookies=True, chunks=1, resume=False, progressNotify=None, disposition=False):
""" this can also download ftp """
self._size = 0
self.dl = HTTPDownload(url, filename, get, post, self.lastEffectiveURL if ref else None,
@@ -87,15 +86,9 @@ class Browser(object):
return name
-
- def download(self, url, file_name, folder, get={}, post={}, ref=True, cookies=True, no_post_encode=False):
- self.log.warning("Browser: deprecated call 'download'")
-
- return self.httpDownload(url, join(folder, file_name), get, post, ref, cookies)
-
- def load(self, url, get={}, post={}, ref=True, cookies=True, just_header=False):
+ def load(self, *args, **kwargs):
""" retrieves page """
- return self.http.load(url, get, post, ref, cookies, just_header)
+ return self.http.load(*args, **kwargs)
def putHeader(self, name, value):