diff options
-rw-r--r-- | module/network/Browser.py | 2 | ||||
-rw-r--r-- | module/plugins/Plugin.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/MultiHome.py | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/module/network/Browser.py b/module/network/Browser.py index 066b0e3ec..2f0144f81 100644 --- a/module/network/Browser.py +++ b/module/network/Browser.py @@ -27,6 +27,8 @@ class Browser(object): self.downloadConnections = [] + lastEffectiveURL = property(lambda self: self.lastURL) #@backward comp, @TODO real last effective url + def setCookieJar(self, cookieJar): self.cookieJar = cookieJar self.http.cookieJar = self.cookieJar diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index ac66d6243..23c9bbf6d 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -300,7 +300,7 @@ class Plugin(object): makedirs(join("tmp", self.__name__)) f = open(join("tmp", self.__name__, "%s_line%s.dump.html" % (frame.f_back.f_code.co_name, frame.f_back.f_lineno)), "wb") - f.write(res) + f.write(res.encode("utf8")) f.close() return res diff --git a/module/plugins/hooks/MultiHome.py b/module/plugins/hooks/MultiHome.py index 3f41938dc..b9b6ac5b7 100644 --- a/module/plugins/hooks/MultiHome.py +++ b/module/plugins/hooks/MultiHome.py @@ -55,7 +55,7 @@ class MultiHome(Hook): iface.useFor(pluginName, account) requestFactory.iface = iface.adress self.log.debug("Multihome: using address: "+iface.adress) - return oldGetRequest(pluginName, account, type) + return oldGetRequest(pluginName, account) requestFactory.getRequest = getRequest def bestInterface(self, pluginName, account): |