- json = simplejson.dumps({})
- return HttpResponse(content, mimetype='text/html')
\ No newline at end of file
+ # Read the messages from the Update Server
+ messages_xml_url = '%s%s' % (UPDATE_SERVER_URL, '/messages/xml/')
+ messages_request = urllib2.Request(messages_xml_url, headers=headers)
+ messages_response = urllib2.urlopen(messages_request)
+ messages_xml = messages_response.read()
+
+ messages_dom = parseString(messages_xml)
+ messages_count = len(messages_dom.getElementsByTagName('message'))
+
+ return HttpResponse(_('%d update messages have been downloaded') % messages_count, mimetype='text/html')
\ No newline at end of file