def POST(self): data = web.data() try: notify_xml = etree.fromstring(data) # XXX verify signature? Should be acs4 function... notify_obj = acs4.el_to_o(notify_xml) output = simplejson.dumps({'success': True}) except Exception, e: output = simplejson.dumps({'success': False, 'error': str(e)})
def POST(self): data = web.data() try: notify_xml = etree.fromstring(data) # XXX verify signature? Should be acs4 function... notify_obj = acs4.el_to_o(notify_xml) output = simplejson.dumps({'success':True}) except Exception, e: output = simplejson.dumps({'success':False, 'error': str(e)})
def POST(self): data = web.data() try: notify_xml = etree.fromstring(data) # XXX verify signature? Should be acs4 function... notify_obj = acs4.el_to_o(notify_xml) output = simplejson.dumps({'success': True}) except Exception as e: output = simplejson.dumps({'success': False, 'error': str(e)}) return delegate.RawText(output, content_type='application/json')
def POST(self): data = web.data() try: notify_xml = etree.fromstring(data) # XXX verify signature? Should be acs4 function... notify_obj = acs4.el_to_o(notify_xml) output = simplejson.dumps({'success':True}) except Exception as e: output = simplejson.dumps({'success':False, 'error': str(e)}) return delegate.RawText(output, content_type='application/json')
def POST(self): data = web.data() try: notify_xml = etree.fromstring(data) # XXX verify signature? Should be acs4 function... notify_obj = acs4.el_to_o(notify_xml) # print simplejson.dumps(notify_obj, sort_keys=True, indent=4) output = simplejson.dumps({"success": True}) except Exception, e: output = simplejson.dumps({"success": False, "error": str(e)})