Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py.orig
diff options
context:
space:
mode:
authorAriel Calzada <ariel@acivitycentral.com>2013-01-03 18:21:35 (GMT)
committer Ariel Calzada <ariel@acivitycentral.com>2013-01-03 18:21:35 (GMT)
commit65c9010dece5720b64093e4ba7cff3e90bdf0f59 (patch)
treeb00fb9933bf7bd28433da8693b2f7246ecf86ef1 /webactivity.py.orig
parent6f324e9f859319778c201951051685d376c8e4db (diff)
sdxo#2572: Add 'Load_URI' signal-handler in 'Browse' activity. When this signal is received (with the 'uri' as the argument),this 'uri' is reloaded in the 'Browse' instance.
Diffstat (limited to 'webactivity.py.orig')
-rw-r--r--webactivity.py.orig5
1 files changed, 5 insertions, 0 deletions
diff --git a/webactivity.py.orig b/webactivity.py.orig
index 3c0d337..c5f13c1 100644
--- a/webactivity.py.orig
+++ b/webactivity.py.orig
@@ -159,6 +159,11 @@ class WebActivity(activity.Activity):
session.set_property('ssl-use-system-ca-file', True)
session.set_property('ssl-strict', False)
+ # 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: