Revision b9809f7c api/faults.py
b/api/faults.py | ||
---|---|---|
77 | 77 |
m['details'] = '' |
78 | 78 |
|
79 | 79 |
# piston > 0.2.2 does the serialization for us, but be compatible |
80 |
# XXX: this won't work when we start supporting XML
|
|
80 |
# 'till the next version gets released. XXX: this doesn't do XML!
|
|
81 | 81 |
message = simplejson.dumps({ attr: m }, ensure_ascii=False, indent=4) |
82 | 82 |
code = m['code'] |
83 | 83 |
response = HttpResponse(message, status=code) |
Also available in: Unified diff