Playing with ActiveResource just a bit more
before trashing all of it. What I really ought to be doing is playing with Sequel or getting more cozy with ActiveRecord.
This commit is contained in:
5
ares/server/helpers.py
Normal file
5
ares/server/helpers.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import json
|
||||
|
||||
def json_loads_from_request(request):
|
||||
raw = request.body.s_iter.read(int(request.headers['Content-Length']))
|
||||
return json.loads(raw)
|
Reference in New Issue
Block a user