Fix #927 - Clean up federation code after Elrond's review
authorJessica Tallon <jessica@megworld.co.uk>
Mon, 28 Jul 2014 22:36:39 +0000 (23:36 +0100)
committerJessica Tallon <jessica@megworld.co.uk>
Wed, 30 Jul 2014 20:53:52 +0000 (21:53 +0100)
commit5e5d445890c6c555dff48b1613c285da983d71c8
tree6c04e0e8f2d455c3ebae77d3b6c65939dc388025
parent138d934f014d2c9c54e247298318832e88dceadb
Fix #927 - Clean up federation code after Elrond's review

- Add json_error and use inplace of json_response where appropriate.
- Add garbage_collection to config spec file.
- Fix bugs in both garbage collection task and test
- Handle /api/whoami when no user logged in and a test for such a case.
- Validate ID is correct and user has comment privilege to comment.
mediagoblin.ini
mediagoblin/config_spec.ini
mediagoblin/db/models.py
mediagoblin/federation/task.py [deleted file]
mediagoblin/federation/views.py
mediagoblin/media_types/image/__init__.py
mediagoblin/submit/lib.py
mediagoblin/submit/task.py [new file with mode: 0755]
mediagoblin/tests/test_api.py
mediagoblin/tests/test_misc.py
mediagoblin/tools/response.py