Split resources.py into per-resource files.

Review Request #4524 — Created Sept. 3, 2013 and submitted

Information

Review Board
master

Reviewers

Split resources.py into per-resource files.

resources.py has become unmanageable, so it's now split up into a bunch
of different files.

The problem going into this was the interdependency between resources.
At class definition time, they neatly form a tree, but at request
handler time, there are circular dependencies.

The solution to this is to have a Resources class that dynamically loads
the right resources from the right places upon request, and caches
them. All references to resource instances go through this, and it
handles dishing them out. It also handles registering them against
models.

The logic for resources haven't changed. It's just code movement. The
only major change here is the logic in resources/init.py.

Unit tests run.

Docs build.

Web UI works.

Description From Last Updated

undefined name 'logging'

reviewbotreviewbot

Col: 80 E501 line too long (81 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 21 E126 continuation line over-indented for hanging indent

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (81 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (82 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (81 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (83 > 79 characters)

reviewbotreviewbot

Col: 22 E201 whitespace after '('

reviewbotreviewbot

Col: 22 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 25 E201 whitespace after '('

reviewbotreviewbot

Col: 25 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 25 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

What's with all the commented-out imports here?

daviddavid

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 80 E501 line too long (80 > 79 characters)

reviewbotreviewbot

Col: 22 E201 whitespace after '('

reviewbotreviewbot

Col: 25 E201 whitespace after '('

reviewbotreviewbot

Col: 22 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 25 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 25 E128 continuation line under-indented for visual indent

reviewbotreviewbot
reviewbot
  1. This is a review from Review Bot.
    Tool: PEP8 Style Checker
    Processed Files:
    reviewboard/webapi/resources/repository.py
    reviewboard/webapi/resources/repository_commits.py
    reviewboard/webapi/resources/repository_info.py
    reviewboard/webapi/resources/review_group.py
    reviewboard/webapi/resources/repository_branches.py
    reviewboard/webapi/resources/draft_file_attachment.py
    reviewboard/webapi/resources/file_attachment.py
    reviewboard/webapi/resources/validate_diff.py
    reviewboard/webapi/resources/base_watched_object.py
    reviewboard/webapi/resources/draft_screenshot.py
    reviewboard/webapi/resources/diff.py
    reviewboard/webapi/resources/hosting_service_account.py
    reviewboard/webapi/resources/review_diff_comment.py
    reviewboard/webapi/resources/review_reply.py
    reviewboard/webapi/resources/base_diff_comment.py
    reviewboard/webapi/resources/root.py
    reviewboard/webapi/resources/base_file_attachment.py
    reviewboard/webapi/resources/review_reply_file_attachment_comment.py
    reviewboard/webapi/resources/review_file_attachment_comment.py
    reviewboard/webapi/resources/change.py
    reviewboard/webapi/resources/session.py
    reviewboard/webapi/resources/review_request_last_update.py
    reviewboard/webapi/tests/urls.py
    reviewboard/webapi/resources/review_request_draft.py
    reviewboard/webapi/resources/review_reply_screenshot_comment.py
    reviewboard/webapi/resources/review_screenshot_comment.py
    reviewboard/webapi/resources/base_comment.py
    reviewboard/webapi/resources/patched_file.py
    reviewboard/webapi/resources/base_screenshot_comment.py
    reviewboard/webapi/resources/screenshot.py
    reviewboard/webapi/resources/watched.py
    reviewboard/webapi/resources/base_file_attachment_comment.py
    reviewboard/webapi/resources/review_request.py
    reviewboard/webapi/resources/default_reviewer.py
    reviewboard/webapi/resources/validation.py
    reviewboard/webapi/resources/original_file.py
    reviewboard/webapi/resources/base_review.py
    reviewboard/webapi/resources/server_info.py
    reviewboard/urls.py
    reviewboard/webapi/resources/review_reply_draft.py
    reviewboard/webapi/resources/filediff_comment.py
    reviewboard/webapi/resources/watched_review_group.py
    reviewboard/webapi/resources/init.py
    reviewboard/webapi/resources/base_screenshot.py
    reviewboard/webapi/resources/watched_review_request.py
    reviewboard/webapi/resources/screenshot_comment.py
    reviewboard/webapi/resources/file_attachment_comment.py
    reviewboard/webapi/resources/search.py
    reviewboard/webapi/resources/filediff.py
    reviewboard/webapi/resources/review_group_user.py
    reviewboard/webapi/resources/review.py
    reviewboard/webapi/resources/user.py
    docs/manual/_ext/webapidocs.py
    reviewboard/webapi/resources/review_draft.py
    reviewboard/webapi/resources/review_reply_diff_comment.py
    Ignored Files:
    reviewboard/webapi/resources.py
    docs/manual/webapi/2.0/resources/review-list.txt
    docs/manual/webapi/2.0/resources/review-reply-screenshot-comment.txt
    docs/manual/webapi/2.0/resources/review-request.txt
    docs/manual/webapi/2.0/resources/review-diff-comment.txt
    docs/manual/webapi/2.0/resources/review-request-draft.txt
    docs/manual/webapi/2.0/resources/screenshot-list.txt
    docs/manual/webapi/2.0/resources/review-reply.txt
    docs/manual/webapi/2.0/resources/patched-file.txt
    docs/manual/webapi/2.0/resources/review-group.txt
    docs/manual/webapi/2.0/resources/repository-list.txt
    docs/manual/webapi/2.0/resources/file-attachment.txt
    docs/manual/webapi/2.0/resources/hosting-service-account.txt
    docs/manual/webapi/2.0/resources/diff-list.txt
    docs/manual/webapi/2.0/resources/validate-diff.txt
    docs/manual/webapi/2.0/resources/review-reply-file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/server-info.txt
    docs/manual/webapi/2.0/resources/extension.txt
    docs/manual/webapi/2.0/resources/draft-file-attachment.txt
    docs/manual/webapi/2.0/resources/review-reply-screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/draft-screenshot-list.txt
    docs/manual/webapi/2.0/resources/review-request-list.txt
    docs/manual/webapi/2.0/resources/default-reviewer-list.txt
    docs/manual/webapi/2.0/resources/review-screenshot-comment.txt
    docs/manual/webapi/2.0/resources/watched-review-request.txt
    docs/manual/webapi/2.0/resources/hosting-service-account-list.txt
    docs/manual/webapi/2.0/resources/watched.txt
    docs/manual/webapi/2.0/resources/change.txt
    docs/manual/webapi/2.0/resources/watched-review-group.txt
    docs/manual/webapi/2.0/resources/review-screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/review-group-list.txt
    docs/manual/webapi/2.0/resources/repository.txt
    docs/manual/webapi/2.0/resources/file-attachment-list.txt
    docs/manual/webapi/2.0/resources/search.txt
    docs/manual/webapi/2.0/resources/watched-review-request-list.txt
    docs/manual/webapi/2.0/resources/extension-list.txt
    docs/manual/webapi/2.0/resources/user-list.txt
    docs/manual/webapi/2.0/resources/default-reviewer.txt
    docs/manual/webapi/2.0/resources/file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/repository-info.txt
    docs/manual/webapi/2.0/resources/review-reply-list.txt
    docs/manual/webapi/2.0/resources/draft-screenshot.txt
    docs/manual/webapi/2.0/resources/review-group-user.txt
    docs/manual/webapi/2.0/resources/review-group-user-list.txt
    docs/manual/webapi/2.0/resources/file-diff.txt
    docs/manual/webapi/2.0/resources/file-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/watched-review-group-list.txt
    docs/manual/webapi/2.0/resources/root.txt
    docs/manual/webapi/2.0/resources/original-file.txt
    docs/manual/webapi/2.0/resources/review-reply-file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/draft-file-attachment-list.txt
    docs/manual/webapi/2.0/resources/review.txt
    docs/manual/webapi/2.0/resources/review-reply-draft.txt
    docs/manual/webapi/2.0/resources/review-draft.txt
    docs/manual/webapi/2.0/resources/review-file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/review-reply-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/screenshot.txt
    docs/manual/webapi/2.0/resources/review-request-last-update.txt
    docs/manual/webapi/2.0/resources/review-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/diff.txt
    docs/manual/webapi/2.0/resources/file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/file-diff-list.txt
    docs/manual/webapi/2.0/resources/session.txt
    docs/manual/webapi/2.0/resources/review-file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/change-list.txt
    docs/manual/webapi/2.0/resources/validation.txt
    docs/manual/webapi/2.0/resources/user.txt
    docs/manual/webapi/2.0/resources/repository-commits.txt
    docs/manual/webapi/2.0/resources/review-reply-diff-comment.txt
    docs/manual/webapi/2.0/resources/repository-branches.txt
    docs/manual/docs.db

  2. Show all issues

    Col: 80
    E501 line too long (81 > 79 characters)

  3. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  4. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  5. Show all issues

    Col: 21
    E126 continuation line over-indented for hanging indent

  6. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  7. Show all issues

    Col: 80
    E501 line too long (81 > 79 characters)

  8. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  9. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  10. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  11. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  12. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  13. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  14. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  15. Show all issues

    Col: 80
    E501 line too long (82 > 79 characters)

  16. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  17. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  18. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  19. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  20. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  21. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  22. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  23. Show all issues

    Col: 80
    E501 line too long (81 > 79 characters)

  24. reviewboard/webapi/resources/search.py (Diff revision 1)
     
     
    Show all issues

    Col: 80
    E501 line too long (83 > 79 characters)

  25. Show all issues

    Col: 22
    E201 whitespace after '('

  26. Show all issues

    Col: 22
    E128 continuation line under-indented for visual indent

  27. Show all issues

    Col: 25
    E201 whitespace after '('

  28. Show all issues

    Col: 25
    E128 continuation line under-indented for visual indent

  29. Show all issues

    Col: 25
    E128 continuation line under-indented for visual indent

  30. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  31. 
      
reviewbot
  1. This is a review from Review Bot.
    Tool: Pyflakes
    Processed Files:
    reviewboard/webapi/resources/repository.py
    reviewboard/webapi/resources/repository_commits.py
    reviewboard/webapi/resources/repository_info.py
    reviewboard/webapi/resources/review_group.py
    reviewboard/webapi/resources/repository_branches.py
    reviewboard/webapi/resources/draft_file_attachment.py
    reviewboard/webapi/resources/file_attachment.py
    reviewboard/webapi/resources/validate_diff.py
    reviewboard/webapi/resources/base_watched_object.py
    reviewboard/webapi/resources/draft_screenshot.py
    reviewboard/webapi/resources/diff.py
    reviewboard/webapi/resources/hosting_service_account.py
    reviewboard/webapi/resources/review_diff_comment.py
    reviewboard/webapi/resources/review_reply.py
    reviewboard/webapi/resources/base_diff_comment.py
    reviewboard/webapi/resources/root.py
    reviewboard/webapi/resources/base_file_attachment.py
    reviewboard/webapi/resources/review_reply_file_attachment_comment.py
    reviewboard/webapi/resources/review_file_attachment_comment.py
    reviewboard/webapi/resources/change.py
    reviewboard/webapi/resources/session.py
    reviewboard/webapi/resources/review_request_last_update.py
    reviewboard/webapi/tests/urls.py
    reviewboard/webapi/resources/review_request_draft.py
    reviewboard/webapi/resources/review_reply_screenshot_comment.py
    reviewboard/webapi/resources/review_screenshot_comment.py
    reviewboard/webapi/resources/base_comment.py
    reviewboard/webapi/resources/patched_file.py
    reviewboard/webapi/resources/base_screenshot_comment.py
    reviewboard/webapi/resources/screenshot.py
    reviewboard/webapi/resources/watched.py
    reviewboard/webapi/resources/base_file_attachment_comment.py
    reviewboard/webapi/resources/review_request.py
    reviewboard/webapi/resources/default_reviewer.py
    reviewboard/webapi/resources/validation.py
    reviewboard/webapi/resources/original_file.py
    reviewboard/webapi/resources/base_review.py
    reviewboard/webapi/resources/server_info.py
    reviewboard/urls.py
    reviewboard/webapi/resources/review_reply_draft.py
    reviewboard/webapi/resources/filediff_comment.py
    reviewboard/webapi/resources/watched_review_group.py
    reviewboard/webapi/resources/init.py
    reviewboard/webapi/resources/base_screenshot.py
    reviewboard/webapi/resources/watched_review_request.py
    reviewboard/webapi/resources/screenshot_comment.py
    reviewboard/webapi/resources/file_attachment_comment.py
    reviewboard/webapi/resources/search.py
    reviewboard/webapi/resources/filediff.py
    reviewboard/webapi/resources/review_group_user.py
    reviewboard/webapi/resources/review.py
    reviewboard/webapi/resources/user.py
    docs/manual/_ext/webapidocs.py
    reviewboard/webapi/resources/review_draft.py
    reviewboard/webapi/resources/review_reply_diff_comment.py
    Ignored Files:
    reviewboard/webapi/resources.py
    docs/manual/webapi/2.0/resources/review-list.txt
    docs/manual/webapi/2.0/resources/review-reply-screenshot-comment.txt
    docs/manual/webapi/2.0/resources/review-request.txt
    docs/manual/webapi/2.0/resources/review-diff-comment.txt
    docs/manual/webapi/2.0/resources/review-request-draft.txt
    docs/manual/webapi/2.0/resources/screenshot-list.txt
    docs/manual/webapi/2.0/resources/review-reply.txt
    docs/manual/webapi/2.0/resources/patched-file.txt
    docs/manual/webapi/2.0/resources/review-group.txt
    docs/manual/webapi/2.0/resources/repository-list.txt
    docs/manual/webapi/2.0/resources/file-attachment.txt
    docs/manual/webapi/2.0/resources/hosting-service-account.txt
    docs/manual/webapi/2.0/resources/diff-list.txt
    docs/manual/webapi/2.0/resources/validate-diff.txt
    docs/manual/webapi/2.0/resources/review-reply-file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/server-info.txt
    docs/manual/webapi/2.0/resources/extension.txt
    docs/manual/webapi/2.0/resources/draft-file-attachment.txt
    docs/manual/webapi/2.0/resources/review-reply-screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/draft-screenshot-list.txt
    docs/manual/webapi/2.0/resources/review-request-list.txt
    docs/manual/webapi/2.0/resources/default-reviewer-list.txt
    docs/manual/webapi/2.0/resources/review-screenshot-comment.txt
    docs/manual/webapi/2.0/resources/watched-review-request.txt
    docs/manual/webapi/2.0/resources/hosting-service-account-list.txt
    docs/manual/webapi/2.0/resources/watched.txt
    docs/manual/webapi/2.0/resources/change.txt
    docs/manual/webapi/2.0/resources/watched-review-group.txt
    docs/manual/webapi/2.0/resources/review-screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/review-group-list.txt
    docs/manual/webapi/2.0/resources/repository.txt
    docs/manual/webapi/2.0/resources/file-attachment-list.txt
    docs/manual/webapi/2.0/resources/search.txt
    docs/manual/webapi/2.0/resources/watched-review-request-list.txt
    docs/manual/webapi/2.0/resources/extension-list.txt
    docs/manual/webapi/2.0/resources/user-list.txt
    docs/manual/webapi/2.0/resources/default-reviewer.txt
    docs/manual/webapi/2.0/resources/file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/repository-info.txt
    docs/manual/webapi/2.0/resources/review-reply-list.txt
    docs/manual/webapi/2.0/resources/draft-screenshot.txt
    docs/manual/webapi/2.0/resources/review-group-user.txt
    docs/manual/webapi/2.0/resources/review-group-user-list.txt
    docs/manual/webapi/2.0/resources/file-diff.txt
    docs/manual/webapi/2.0/resources/file-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/watched-review-group-list.txt
    docs/manual/webapi/2.0/resources/root.txt
    docs/manual/webapi/2.0/resources/original-file.txt
    docs/manual/webapi/2.0/resources/review-reply-file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/draft-file-attachment-list.txt
    docs/manual/webapi/2.0/resources/review.txt
    docs/manual/webapi/2.0/resources/review-reply-draft.txt
    docs/manual/webapi/2.0/resources/review-draft.txt
    docs/manual/webapi/2.0/resources/review-file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/review-reply-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/screenshot.txt
    docs/manual/webapi/2.0/resources/review-request-last-update.txt
    docs/manual/webapi/2.0/resources/review-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/diff.txt
    docs/manual/webapi/2.0/resources/file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/file-diff-list.txt
    docs/manual/webapi/2.0/resources/session.txt
    docs/manual/webapi/2.0/resources/review-file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/change-list.txt
    docs/manual/webapi/2.0/resources/validation.txt
    docs/manual/webapi/2.0/resources/user.txt
    docs/manual/webapi/2.0/resources/repository-commits.txt
    docs/manual/webapi/2.0/resources/review-reply-diff-comment.txt
    docs/manual/webapi/2.0/resources/repository-branches.txt
    docs/manual/docs.db

  2. Show all issues

    undefined name 'logging'

  3. 
      
chipx86
chipx86
reviewbot
  1. This is a review from Review Bot.
    Tool: PEP8 Style Checker
    Processed Files:
    reviewboard/webapi/resources/repository.py
    reviewboard/webapi/resources/repository_commits.py
    reviewboard/webapi/resources/repository_info.py
    reviewboard/webapi/resources/review_group.py
    reviewboard/webapi/resources/repository_branches.py
    reviewboard/webapi/resources/draft_file_attachment.py
    reviewboard/webapi/resources/file_attachment.py
    reviewboard/webapi/resources/validate_diff.py
    reviewboard/webapi/resources/base_watched_object.py
    reviewboard/webapi/resources/draft_screenshot.py
    reviewboard/webapi/resources/diff.py
    reviewboard/webapi/resources/hosting_service_account.py
    reviewboard/webapi/resources/review_diff_comment.py
    reviewboard/webapi/resources/review_reply.py
    reviewboard/webapi/resources/base_diff_comment.py
    reviewboard/webapi/resources/root.py
    reviewboard/webapi/resources/base_file_attachment.py
    reviewboard/webapi/resources/review_reply_file_attachment_comment.py
    reviewboard/webapi/resources/review_file_attachment_comment.py
    reviewboard/webapi/resources/change.py
    reviewboard/webapi/resources/session.py
    reviewboard/webapi/resources/review_request_last_update.py
    reviewboard/webapi/tests/urls.py
    reviewboard/webapi/resources/review_request_draft.py
    reviewboard/webapi/resources/review_reply_screenshot_comment.py
    reviewboard/webapi/resources/review_screenshot_comment.py
    reviewboard/webapi/resources/base_comment.py
    reviewboard/webapi/resources/patched_file.py
    reviewboard/webapi/resources/base_screenshot_comment.py
    reviewboard/webapi/resources/screenshot.py
    reviewboard/webapi/resources/watched.py
    reviewboard/webapi/resources/base_file_attachment_comment.py
    reviewboard/webapi/resources/review_request.py
    reviewboard/webapi/resources/default_reviewer.py
    reviewboard/webapi/resources/validation.py
    reviewboard/webapi/resources/original_file.py
    reviewboard/webapi/resources/base_review.py
    reviewboard/webapi/resources/server_info.py
    reviewboard/urls.py
    reviewboard/webapi/resources/review_reply_draft.py
    reviewboard/webapi/resources/filediff_comment.py
    reviewboard/webapi/resources/watched_review_group.py
    reviewboard/webapi/resources/init.py
    reviewboard/webapi/resources/base_screenshot.py
    reviewboard/webapi/resources/watched_review_request.py
    reviewboard/webapi/resources/screenshot_comment.py
    reviewboard/webapi/resources/file_attachment_comment.py
    reviewboard/webapi/resources/search.py
    reviewboard/webapi/resources/filediff.py
    reviewboard/webapi/resources/review_group_user.py
    reviewboard/webapi/resources/review.py
    reviewboard/webapi/resources/user.py
    docs/manual/_ext/webapidocs.py
    reviewboard/webapi/resources/review_draft.py
    reviewboard/webapi/resources/review_reply_diff_comment.py
    Ignored Files:
    reviewboard/webapi/resources.py
    docs/manual/webapi/2.0/resources/review-list.txt
    docs/manual/webapi/2.0/resources/review-reply-screenshot-comment.txt
    docs/manual/webapi/2.0/resources/review-request.txt
    docs/manual/webapi/2.0/resources/review-diff-comment.txt
    docs/manual/webapi/2.0/resources/review-request-draft.txt
    docs/manual/webapi/2.0/resources/screenshot-list.txt
    docs/manual/webapi/2.0/resources/review-reply.txt
    docs/manual/webapi/2.0/resources/patched-file.txt
    docs/manual/webapi/2.0/resources/review-group.txt
    docs/manual/webapi/2.0/resources/repository-list.txt
    docs/manual/webapi/2.0/resources/file-attachment.txt
    docs/manual/webapi/2.0/resources/hosting-service-account.txt
    docs/manual/webapi/2.0/resources/diff-list.txt
    docs/manual/webapi/2.0/resources/validate-diff.txt
    docs/manual/webapi/2.0/resources/review-reply-file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/server-info.txt
    docs/manual/webapi/2.0/resources/extension.txt
    docs/manual/webapi/2.0/resources/draft-file-attachment.txt
    docs/manual/webapi/2.0/resources/review-reply-screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/draft-screenshot-list.txt
    docs/manual/webapi/2.0/resources/review-request-list.txt
    docs/manual/webapi/2.0/resources/default-reviewer-list.txt
    docs/manual/webapi/2.0/resources/review-screenshot-comment.txt
    docs/manual/webapi/2.0/resources/watched-review-request.txt
    docs/manual/webapi/2.0/resources/hosting-service-account-list.txt
    docs/manual/webapi/2.0/resources/watched.txt
    docs/manual/webapi/2.0/resources/change.txt
    docs/manual/webapi/2.0/resources/watched-review-group.txt
    docs/manual/webapi/2.0/resources/review-screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/review-group-list.txt
    docs/manual/webapi/2.0/resources/repository.txt
    docs/manual/webapi/2.0/resources/file-attachment-list.txt
    docs/manual/webapi/2.0/resources/search.txt
    docs/manual/webapi/2.0/resources/watched-review-request-list.txt
    docs/manual/webapi/2.0/resources/extension-list.txt
    docs/manual/webapi/2.0/resources/user-list.txt
    docs/manual/webapi/2.0/resources/default-reviewer.txt
    docs/manual/webapi/2.0/resources/file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/repository-info.txt
    docs/manual/webapi/2.0/resources/review-reply-list.txt
    docs/manual/webapi/2.0/resources/draft-screenshot.txt
    docs/manual/webapi/2.0/resources/review-group-user.txt
    docs/manual/webapi/2.0/resources/review-group-user-list.txt
    docs/manual/webapi/2.0/resources/file-diff.txt
    docs/manual/webapi/2.0/resources/file-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/watched-review-group-list.txt
    docs/manual/webapi/2.0/resources/root.txt
    docs/manual/webapi/2.0/resources/original-file.txt
    docs/manual/webapi/2.0/resources/review-reply-file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/draft-file-attachment-list.txt
    docs/manual/webapi/2.0/resources/review.txt
    docs/manual/webapi/2.0/resources/review-reply-draft.txt
    docs/manual/webapi/2.0/resources/review-draft.txt
    docs/manual/webapi/2.0/resources/review-file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/review-reply-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/screenshot.txt
    docs/manual/webapi/2.0/resources/review-request-last-update.txt
    docs/manual/webapi/2.0/resources/review-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/diff.txt
    docs/manual/webapi/2.0/resources/file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/file-diff-list.txt
    docs/manual/webapi/2.0/resources/session.txt
    docs/manual/webapi/2.0/resources/review-file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/change-list.txt
    docs/manual/webapi/2.0/resources/validation.txt
    docs/manual/webapi/2.0/resources/user.txt
    docs/manual/webapi/2.0/resources/repository-commits.txt
    docs/manual/webapi/2.0/resources/review-reply-diff-comment.txt
    docs/manual/webapi/2.0/resources/repository-branches.txt
    docs/manual/docs.db

  2. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  3. Show all issues

    Col: 80
    E501 line too long (80 > 79 characters)

  4. Show all issues

    Col: 22
    E201 whitespace after '('

  5. Show all issues

    Col: 25
    E201 whitespace after '('

  6. Show all issues

    Col: 22
    E128 continuation line under-indented for visual indent

  7. Show all issues

    Col: 25
    E128 continuation line under-indented for visual indent

  8. Show all issues

    Col: 25
    E128 continuation line under-indented for visual indent

  9. 
      
reviewbot
  1. This is a review from Review Bot.
    Tool: Pyflakes
    Processed Files:
    reviewboard/webapi/resources/repository.py
    reviewboard/webapi/resources/repository_commits.py
    reviewboard/webapi/resources/repository_info.py
    reviewboard/webapi/resources/review_group.py
    reviewboard/webapi/resources/repository_branches.py
    reviewboard/webapi/resources/draft_file_attachment.py
    reviewboard/webapi/resources/file_attachment.py
    reviewboard/webapi/resources/validate_diff.py
    reviewboard/webapi/resources/base_watched_object.py
    reviewboard/webapi/resources/draft_screenshot.py
    reviewboard/webapi/resources/diff.py
    reviewboard/webapi/resources/hosting_service_account.py
    reviewboard/webapi/resources/review_diff_comment.py
    reviewboard/webapi/resources/review_reply.py
    reviewboard/webapi/resources/base_diff_comment.py
    reviewboard/webapi/resources/root.py
    reviewboard/webapi/resources/base_file_attachment.py
    reviewboard/webapi/resources/review_reply_file_attachment_comment.py
    reviewboard/webapi/resources/review_file_attachment_comment.py
    reviewboard/webapi/resources/change.py
    reviewboard/webapi/resources/session.py
    reviewboard/webapi/resources/review_request_last_update.py
    reviewboard/webapi/tests/urls.py
    reviewboard/webapi/resources/review_request_draft.py
    reviewboard/webapi/resources/review_reply_screenshot_comment.py
    reviewboard/webapi/resources/review_screenshot_comment.py
    reviewboard/webapi/resources/base_comment.py
    reviewboard/webapi/resources/patched_file.py
    reviewboard/webapi/resources/base_screenshot_comment.py
    reviewboard/webapi/resources/screenshot.py
    reviewboard/webapi/resources/watched.py
    reviewboard/webapi/resources/base_file_attachment_comment.py
    reviewboard/webapi/resources/review_request.py
    reviewboard/webapi/resources/default_reviewer.py
    reviewboard/webapi/resources/validation.py
    reviewboard/webapi/resources/original_file.py
    reviewboard/webapi/resources/base_review.py
    reviewboard/webapi/resources/server_info.py
    reviewboard/urls.py
    reviewboard/webapi/resources/review_reply_draft.py
    reviewboard/webapi/resources/filediff_comment.py
    reviewboard/webapi/resources/watched_review_group.py
    reviewboard/webapi/resources/init.py
    reviewboard/webapi/resources/base_screenshot.py
    reviewboard/webapi/resources/watched_review_request.py
    reviewboard/webapi/resources/screenshot_comment.py
    reviewboard/webapi/resources/file_attachment_comment.py
    reviewboard/webapi/resources/search.py
    reviewboard/webapi/resources/filediff.py
    reviewboard/webapi/resources/review_group_user.py
    reviewboard/webapi/resources/review.py
    reviewboard/webapi/resources/user.py
    docs/manual/_ext/webapidocs.py
    reviewboard/webapi/resources/review_draft.py
    reviewboard/webapi/resources/review_reply_diff_comment.py
    Ignored Files:
    reviewboard/webapi/resources.py
    docs/manual/webapi/2.0/resources/review-list.txt
    docs/manual/webapi/2.0/resources/review-reply-screenshot-comment.txt
    docs/manual/webapi/2.0/resources/review-request.txt
    docs/manual/webapi/2.0/resources/review-diff-comment.txt
    docs/manual/webapi/2.0/resources/review-request-draft.txt
    docs/manual/webapi/2.0/resources/screenshot-list.txt
    docs/manual/webapi/2.0/resources/review-reply.txt
    docs/manual/webapi/2.0/resources/patched-file.txt
    docs/manual/webapi/2.0/resources/review-group.txt
    docs/manual/webapi/2.0/resources/repository-list.txt
    docs/manual/webapi/2.0/resources/file-attachment.txt
    docs/manual/webapi/2.0/resources/hosting-service-account.txt
    docs/manual/webapi/2.0/resources/diff-list.txt
    docs/manual/webapi/2.0/resources/validate-diff.txt
    docs/manual/webapi/2.0/resources/review-reply-file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/server-info.txt
    docs/manual/webapi/2.0/resources/extension.txt
    docs/manual/webapi/2.0/resources/draft-file-attachment.txt
    docs/manual/webapi/2.0/resources/review-reply-screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/draft-screenshot-list.txt
    docs/manual/webapi/2.0/resources/review-request-list.txt
    docs/manual/webapi/2.0/resources/default-reviewer-list.txt
    docs/manual/webapi/2.0/resources/review-screenshot-comment.txt
    docs/manual/webapi/2.0/resources/watched-review-request.txt
    docs/manual/webapi/2.0/resources/hosting-service-account-list.txt
    docs/manual/webapi/2.0/resources/watched.txt
    docs/manual/webapi/2.0/resources/change.txt
    docs/manual/webapi/2.0/resources/watched-review-group.txt
    docs/manual/webapi/2.0/resources/review-screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/review-group-list.txt
    docs/manual/webapi/2.0/resources/repository.txt
    docs/manual/webapi/2.0/resources/file-attachment-list.txt
    docs/manual/webapi/2.0/resources/search.txt
    docs/manual/webapi/2.0/resources/watched-review-request-list.txt
    docs/manual/webapi/2.0/resources/extension-list.txt
    docs/manual/webapi/2.0/resources/user-list.txt
    docs/manual/webapi/2.0/resources/default-reviewer.txt
    docs/manual/webapi/2.0/resources/file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/repository-info.txt
    docs/manual/webapi/2.0/resources/review-reply-list.txt
    docs/manual/webapi/2.0/resources/draft-screenshot.txt
    docs/manual/webapi/2.0/resources/review-group-user.txt
    docs/manual/webapi/2.0/resources/review-group-user-list.txt
    docs/manual/webapi/2.0/resources/file-diff.txt
    docs/manual/webapi/2.0/resources/file-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/watched-review-group-list.txt
    docs/manual/webapi/2.0/resources/root.txt
    docs/manual/webapi/2.0/resources/original-file.txt
    docs/manual/webapi/2.0/resources/review-reply-file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/draft-file-attachment-list.txt
    docs/manual/webapi/2.0/resources/review.txt
    docs/manual/webapi/2.0/resources/review-reply-draft.txt
    docs/manual/webapi/2.0/resources/review-draft.txt
    docs/manual/webapi/2.0/resources/review-file-attachment-comment-list.txt
    docs/manual/webapi/2.0/resources/review-reply-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/screenshot.txt
    docs/manual/webapi/2.0/resources/review-request-last-update.txt
    docs/manual/webapi/2.0/resources/review-diff-comment-list.txt
    docs/manual/webapi/2.0/resources/diff.txt
    docs/manual/webapi/2.0/resources/file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/screenshot-comment-list.txt
    docs/manual/webapi/2.0/resources/file-diff-list.txt
    docs/manual/webapi/2.0/resources/session.txt
    docs/manual/webapi/2.0/resources/review-file-attachment-comment.txt
    docs/manual/webapi/2.0/resources/change-list.txt
    docs/manual/webapi/2.0/resources/validation.txt
    docs/manual/webapi/2.0/resources/user.txt
    docs/manual/webapi/2.0/resources/repository-commits.txt
    docs/manual/webapi/2.0/resources/review-reply-diff-comment.txt
    docs/manual/webapi/2.0/resources/repository-branches.txt
    docs/manual/docs.db

  2. 
      
david
  1. 
      
  2. reviewboard/webapi/resources/base_diff_comment.py (Diff revision 2)
     
     
     
     
     
    Show all issues

    What's with all the commented-out imports here?

    1. Oops, must have forgotten that file.

      My process for splitting was to first split out the classes into each file, then copy a commented out version of all of resource.py's imports into each, then run pyflakes, uncomment what I needed, and delete the rest. Had some nice little vim macros set up for it. I apparently didn't run the "delete the commented lines" one here.

    2. You sure it didn't delete any real comments in the other files?

    3. It only deleted lines matching '^#". The cursor always ended up on the very last import, never anywhere inside the classes.

    4. OK. Once you fix this file, ship it.

  3. 
      
chipx86
Review request changed
Status:
Completed