Split djblets.webapi.resources into sub-modules.
Review Request #7472 — Created July 1, 2015 and submitted
This is the second part of the djblets.webapi cleanup. This change takes djblets.webapi.resources, which contained WebAPIResource, UserResource, GroupResource, RootResource, and all the resource registration functions, and moves them out into new submodules. This will make it easier to bundle and maintain new built-in resources for different purposes, and to keep the code more organized. The old djblets.webapi.resources still works. It imports all the original classes/functions, and triggers a deprecation warning when imported. Docstrings have been updated for most of this to conform with the new codebase docs format we're using, but I didn't do this everywhere. WebAPIResource is largely untouched, except for formatting errors for lists.
Unit tests pass on both Djblets and Review Board.
Built the docs and looked through them. Not everything is perfect, but
all the new/fixed content looks correct.
Description | From | Last Updated |
---|---|---|
Col: 47 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 47 E128 continuation line under-indented for visual indent |
reviewbot | |
"An resource" isn't correct. |
david | |
Should have an extra blank line here. |
david | |
Should be "Retrieve" |
david | |
Should be "Retrieve" |
david |
- Change Summary:
-
Fixed alignment issues.
- Commit:
-
f8177377c6b4edaf90e462d6f7596ad65b6fd7e75b516c7e34984c8d64dd29c2b7965e374cb4a9bd
-
Tool: Pyflakes Processed Files: djblets/webapi/resources/group.py djblets/webapi/resources/root.py djblets/webapi/resources/registry.py djblets/webapi/resources/base.py djblets/webapi/resources/user.py djblets/webapi/resources/__init__.py Ignored Files: docs/djblets/coderef/index.rst Tool: PEP8 Style Checker Processed Files: djblets/webapi/resources/group.py djblets/webapi/resources/root.py djblets/webapi/resources/registry.py djblets/webapi/resources/base.py djblets/webapi/resources/user.py djblets/webapi/resources/__init__.py Ignored Files: docs/djblets/coderef/index.rst
- Change Summary:
-
Fixed blank line and doc issues.
- Commit:
-
5b516c7e34984c8d64dd29c2b7965e374cb4a9bde2416b72f8802aa36d93d62ac2399996345a8de1
-
Tool: Pyflakes Processed Files: djblets/webapi/resources/group.py djblets/webapi/resources/root.py djblets/webapi/resources/registry.py djblets/webapi/resources/base.py djblets/webapi/resources/user.py djblets/webapi/resources/__init__.py Ignored Files: docs/djblets/coderef/index.rst Tool: PEP8 Style Checker Processed Files: djblets/webapi/resources/group.py djblets/webapi/resources/root.py djblets/webapi/resources/registry.py djblets/webapi/resources/base.py djblets/webapi/resources/user.py djblets/webapi/resources/__init__.py Ignored Files: docs/djblets/coderef/index.rst