Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activities/web/webactivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'activities/web/webactivity.py')
-rw-r--r--activities/web/webactivity.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/activities/web/webactivity.py b/activities/web/webactivity.py
index 372fad4..08d0af1 100644
--- a/activities/web/webactivity.py
+++ b/activities/web/webactivity.py
@@ -102,6 +102,13 @@ def start():
raise "Error when initializising the web activity."
style.load_stylesheet(web.stylesheet)
+
+ chandler = _sugar.get_browser_chandler()
+ chandler.connect('handle-content', handle_content_cb)
+ logging.debug('handle-content connected.')
def stop():
gtkmozembed.pop_startup()
+
+def handle_content_cb(chandler, url, suggestedFileName, mimeType, tmpFileName):
+ logging.debug('File ' + tmpFileName + ' with MIMEType ' + mimeType + ' downloaded from ' + url)