Make the survey point to the new location on appspot

This commit is contained in:
Salvo 'LtWorf' Tomaselli 2013-12-26 23:51:00 +01:00
parent 600ad5caf4
commit c637890795
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,5 @@
application: feedback-ltworf application: feedback-ltworf
version: 1 version: 2
runtime: python27 runtime: python27
api_version: 1 api_version: 1
threadsafe: true threadsafe: true

View File

@ -34,8 +34,13 @@ def send_survey(data):
#sends the string #sends the string
params = urllib.urlencode({'survey':post}) params = urllib.urlencode({'survey':post})
headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"} headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}
connection = httplib.HTTPConnection('galileo.dmi.unict.it') #connection = httplib.HTTPConnection('galileo.dmi.unict.it')
connection.request("POST","/~ltworf/survey.php",params,headers) #connection.request("POST","/~ltworf/survey.php",params,headers)
connection = httplib.HTTPConnection('feedback-ltworf.appspot.com')
connection.request("POST","/feedback/relational",params,headers)
return connection.getresponse() return connection.getresponse()