User Tools

Site Tools


push_notifications:postgresql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
push_notifications:postgresql [2015/03/03 16:49] lettipush_notifications:postgresql [2015/03/03 17:33] (current) letti
Line 115: Line 115:
 if login_resp.getcode() == '200': if login_resp.getcode() == '200':
  
-    notify_values = {{'channel' : channel, 'to_tokens':token,'payload':payload}+    notify_values = {'channel' : channel, 'to_tokens':token,'payload':payload} 
-    login_data = urllib.urlencode(notify_values)+    notify_data = urllib.urlencode(notify_values)
  
-    notify_resp = opener.open(push_url,login_data+    notify_resp = opener.open(push_url,notify_data
-    return notify_resp.getcode()+     
 +    if notify_restp.getcode() == '200': 
 +        return True
 else: else:
-    return login_resp.getcode()+    return False
  
 $BODY$ $BODY$
push_notifications/postgresql.1425401362.txt.gz · Last modified: 2015/03/03 16:49 by letti