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:
Dan Buch
2012-05-29 16:41:47 -04:00
parent 32aaca146b
commit 2599a100da
4 changed files with 20 additions and 11 deletions

5
ares/server/helpers.py Normal file
View 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)