Revision 14a6a08f
b/api/faults.py | ||
---|---|---|
73 | 73 |
except TypeError: |
74 | 74 |
raise AttributeError(attr) |
75 | 75 |
|
76 |
# XXX: piston > 0.2.2 does the serialization for us, but be compatible |
|
76 |
# details are not supported for now |
|
77 |
m['details'] = '' |
|
78 |
|
|
79 |
# piston > 0.2.2 does the serialization for us, but be compatible |
|
80 |
# XXX: this won't work when we start supporting XML |
|
77 | 81 |
message = simplejson.dumps({ attr: m }, ensure_ascii=False, indent=4) |
78 | 82 |
code = m['code'] |
79 | 83 |
response = HttpResponse(message, status=code) |
Also available in: Unified diff