Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel Calzada <aricalso@000PaRaDoX000.(none)>2012-11-16 12:05:40 (GMT)
committer Ariel Calzada <aricalso@000PaRaDoX000.(none)>2012-11-16 12:05:40 (GMT)
commitd164d2bf6bf239a78ef07319d70e5968edbf08e5 (patch)
treeddfd61d982ce3864db6ff330b2b84188da5288ce
parentdbb17470b79bb230b0019ac306811ef956cec71d (diff)
Added patch proxy supportHEADmaster
-rw-r--r--webactivity.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/webactivity.py b/webactivity.py
index d140128..5ae0358 100644
--- a/webactivity.py
+++ b/webactivity.py
@@ -157,6 +157,11 @@ class WebActivity(activity.Activity):
session = WebKit.get_default_session()
session.set_property('accept-language-auto', True)
+ # Honor the http_proxy variable
+ if os.environ.get('http_proxy') is not None:
+ proxy_uri = Soup.URI.new(os.environ['http_proxy'])
+ session.set_property("proxy-uri",proxy_uri)
+
# By default, cookies are not stored persistently, we have to
# add a cookie jar so that they get saved to disk. We use one
# with a SQlite database: