Files
2012-02-21 01:15:00 -05:00

1 line
3.0 KiB
JSON

[{"user_id": 275, "stars": [], "topic_id": 13294, "date_created": 1300245513.744302, "message": "comments welcome", "group_id": 81, "id": 362224}, {"user_id": 275, "stars": [], "topic_id": 13294, "date_created": 1300245506.641053, "message": "https://gist.github.com/871954", "group_id": 81, "id": 362221}, {"user_id": 4857, "stars": [], "topic_id": 13294, "date_created": 1300257412.410043, "message": "same with __getitem__. Magic honey moon? ;)", "group_id": 81, "id": 363295}, {"user_id": 4857, "stars": [], "topic_id": 13294, "date_created": 1300257536.3495469, "message": "see also http://docs.python.org/library/functools.html#functools.wraps", "group_id": 81, "id": 363308}, {"user_id": 4857, "stars": [], "topic_id": 13294, "date_created": 1300257385.2772169, "message": "Better use x in y construct than magic __contains__ method.", "group_id": 81, "id": 363292}, {"user_id": 275, "stars": [], "topic_id": 13294, "date_created": 1300259410.0133209, "message": "a slightly nicer version:", "group_id": 81, "id": 363442}, {"user_id": 275, "stars": [], "topic_id": 13294, "date_created": 1300259238.4337759, "message": "@jk - nah, was just following some sample code. and, it worked. :P", "group_id": 81, "id": 363430}, {"user_id": 275, "stars": [], "topic_id": 13294, "date_created": 1300259410.902313, "message": "https://gist.github.com/871954", "group_id": 81, "id": 363443}, {"user_id": 6894, "stars": [], "topic_id": 13294, "date_created": 1300259632.2781689, "message": "cool. I'd also put the jsonifying code in the decorator - it would save space in your view and ensure the response is valid JSONP.", "group_id": 81, "id": 363464}, {"user_id": 275, "stars": [], "topic_id": 13294, "date_created": 1300259882.180552, "message": "To be fair, this was mostly a reason to learn decorators and do some DRY coding", "group_id": 81, "id": 363478}, {"user_id": 6894, "stars": [], "topic_id": 13294, "date_created": 1300258895.339196, "message": "I'd probably expect something like this if the view returns a redirect etc:\n if response.status_code != 200:\n return response", "group_id": 81, "id": 363422}, {"user_id": 275, "stars": [], "topic_id": 13294, "date_created": 1300259269.99068, "message": "@craigds - yes, my local copy got updated to ignore non-200 responses", "group_id": 81, "id": 363433}, {"user_id": 6894, "stars": [], "topic_id": 13294, "date_created": 1300259707.5947151, "message": "hm. although that means the view could be returning a dict/list/response and maybe that's bad. #thinkingoutloud", "group_id": 81, "id": 363468}, {"user_id": 275, "stars": [], "topic_id": 13294, "date_created": 1300259818.890837, "message": "I'd rather the view have to be sure its returning a valid json struct", "group_id": 81, "id": 363471}, {"user_id": 6894, "stars": [], "topic_id": 13294, "date_created": 1300259908.1127391, "message": "cool, nice work", "group_id": 81, "id": 363482}, {"user_id": 275, "stars": [], "topic_id": 13294, "date_created": 1300259835.4710369, "message": "And httpresponse", "group_id": 81, "id": 363472}]