• Get Review Board
  • What's New
  • Products
  • Review Board Code review, image review, and document review
  • Documentation
  • Release Notes
  • Power Pack Enterprise integrations, reports, and enhanced document review
  • Try for 60 Days
  • Purchase
  • RBCommons Review Board as a Service, hosted by us
  • Pricing
  • RBTools Command line tools and Python API for Review Board
  • Documentation
  • Release Notes
  • Review Bot Automated code review, connecting tools you already use
  • Documentation
  • Release Notes
  • RB Gateway Manage Git and Mercurial repositories in your network
  • Documentation
  • Release Notes
  • Learn and Explore
  • What is Code Review?
  • Documentation
  • Frequently Asked Questions
  • Support Options
  • Third-Party Integrations
  • Demo
  • Review Board RBTools Power Pack Review Bot Djblets RB Gateway
    1. Review Board 4.0
    2. Version 7.x
    3. Version 6.x
    4. Version 5.0
    5. Version 4.0
    6. Version 3.0
    7. Version 2.5
    8. Version 2.0
    9. Version 1.7
    10. Version 1.6
    11. Version 1.5
    12. Version 1.0
    13. Extending Review Board
    14. Module and Class References
    15. reviewboard.reviews.models
  • Home
  • Users Guide
  • Getting Started
  • Introduction
  • What is Code Review?
  • General Workflow
  • Account Settings
  • Dashboard
  • Working with Review Requests
  • Overview
  • Creating Review Requests
  • Editing Fields
  • Uploading Diffs
  • Uploading File Attachments
  • Publishing Review Requests
  • Closing Review Requests
  • Reviewing
  • Reviews and Comments
  • Review Draft Banner
  • Issue Tracking
  • Reviewing Diffs
  • Reviewing File Attachments
  • Reviewing Images
  • Reviewing Markdown Files
  • Reviewing Text Files
  • Creating and Editing Reviews
  • Publishing Reviews
  • Approving Changes (Ship It!)
  • Replying to Comments
  • Automated Code Review
  • Searching
  • Quick Search
  • Full-Text Search
  • Using Markdown
  • Administration Guide
  • Installation
  • Installing on Linux
  • Installing on Mac OS X Server
  • Installing on Windows
  • Installing with Docker
  • Installing Development Releases
  • Creating a Review Board Site
  • Upgrading
  • Upgrading Review Board
  • Upgrading Sites
  • Optimization
  • General Optimization Tips
  • Optimizing Memcached
  • Optimizing MySQL
  • Administration UI
  • Overview of the Administration UI
  • Administrator Dashboard
  • Database Management
  • Configuration
  • Site Settings
  • General Settings
  • Authentication Settings
  • Avatar Services Settings
  • E-Mail Settings
  • Diff Viewer Settings
  • Logging Settings
  • SSH Settings
  • File Storage Settings
  • Access Control
  • Working with E-Mail
  • Default Reviewers
  • Permission Groups
  • Repositories
  • Bazaar Repositories
  • CVS Repositories
  • Git Repositories
  • HCL VersionVault and IBM ClearCase
  • Mercurial Repositories
  • Perforce Repositories
  • Subversion Repositories
  • Assembla Repositories
  • AWS CodeCommit Repositories
  • Beanstalk Repositories
  • Bitbucket Repositories
  • Bitbucket Server Repositories
  • Codebase HQ Repositories
  • Fedora Hosted Repositories
  • Gerrit Repositories
  • GitHub Repositories
  • GitHub Enterprise Repositories
  • GitLab Repositories
  • Gitorious Repositories
  • Cliosoft SOS Repositories
  • SourceForge Repositories
  • Unfuddle STACK Repositories
  • VisualStudio.com Repositories
  • Review Groups
  • Users
  • WebHooks
  • Extensions
  • Integrations
  • Asana Integration
  • CircleCI Integration
  • Discord Integration
  • I Done This Integration
  • Jenkins CI Integration
  • Mattermost Integration
  • Slack Integration
  • Travis CI Integration
  • Trello Integration
  • Site Maintenance
  • The rb-site Tool
  • Search Indexing
  • Advanced Management Commands
  • Web API Guide
  • Resource Tree
  • Resources
  • Root List Resource
  • Default Reviewer List Resource
  • Default Reviewer Resource
  • Extension List Resource
  • Extension Resource
  • Hosting Service Account List Resource
  • Hosting Service Account Resource
  • Remote Repository List Resource
  • Hosting Service List Resource
  • Hosting Service Resource
  • OAuth2 Applications List Resource
  • OAuth2 Applications Resource
  • OAuth2 Tokens List Resource
  • OAuth2 Tokens Resource
  • Repository List Resource
  • Repository Resource
  • Diff File Attachment List Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Info Resource
  • Repository User List Resource
  • Review Group List Resource
  • Review Group Resource
  • Review Group User List Resource
  • Review Request List Resource
  • Review Request Resource
  • Change List Resource
  • Diff Context Resource
  • Diff List Resource
  • File Attachment List Resource
  • Review List Resource
  • Review Request Draft Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Status Update List Resource
  • Search Resource
  • Server Info Resource
  • Session Resource
  • User List Resource
  • User Resource
  • API Token List Resource
  • Archived Review Request List Resource
  • Muted Review Request List Resource
  • User File Attachment List Resource
  • Watched List Resource
  • Validation List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • WebHook List Resource
  • WebHook Resource
  • Server Info Resource
  • Default Reviewer List Resource
  • Default Reviewer Resource
  • Default Reviewer Resource
  • Diff Context Resource
  • Diff List Resource
  • Diff Resource
  • Diff Commit List Resource
  • Diff Commit Resource
  • File Diff List Resource
  • File Diff Resource
  • Diff Resource
  • Diff Commit List Resource
  • Diff Commit Resource
  • File Diff List Resource
  • File Diff Resource
  • File Diff Comment List Resource
  • Original File Resource
  • Patched File Resource
  • Diff Commit List Resource
  • Diff Commit Resource
  • Diff Commit Resource
  • Diff File Attachment List Resource
  • Diff File Attachment Resource
  • Diff File Attachment Resource
  • Original File Resource
  • Patched File Resource
  • Extension List Resource
  • Extension Resource
  • Extension Resource
  • Hosting Service List Resource
  • Hosting Service Resource
  • Hosting Service Resource
  • Hosting Service Account List Resource
  • Hosting Service Account Resource
  • Remote Repository List Resource
  • Remote Repository Resource
  • Hosting Service Account Resource
  • Remote Repository List Resource
  • Remote Repository Resource
  • Remote Repository List Resource
  • Remote Repository Resource
  • Remote Repository Resource
  • OAuth2 Applications List Resource
  • OAuth2 Applications Resource
  • OAuth2 Applications Resource
  • OAuth2 Tokens List Resource
  • OAuth2 Tokens Resource
  • OAuth2 Tokens Resource
  • Repository List Resource
  • Repository Resource
  • Diff File Attachment List Resource
  • Diff File Attachment Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Group Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository User Resource
  • Repository Resource
  • Diff File Attachment List Resource
  • Diff File Attachment Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Group Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository User Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Group Resource
  • Repository Group Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository User Resource
  • Repository User Resource
  • Review Group List Resource
  • Review Group Resource
  • Review Group User List Resource
  • Review Group User Resource
  • Review Group Resource
  • Review Group User List Resource
  • Review Group User Resource
  • Review Group User List Resource
  • Review Group User Resource
  • Review Group User Resource
  • Change List Resource
  • Change Resource
  • Change Resource
  • File Attachment List Resource
  • File Attachment Resource
  • File Attachment Comment List Resource
  • File Attachment Resource
  • File Attachment Comment List Resource
  • File Attachment Comment List Resource
  • File Diff List Resource
  • File Diff Resource
  • File Diff Comment List Resource
  • Original File Resource
  • Patched File Resource
  • File Diff Resource
  • File Diff Comment List Resource
  • Original File Resource
  • Patched File Resource
  • File Diff Comment List Resource
  • Review Request List Resource
  • Review Request Resource
  • Change List Resource
  • Change Resource
  • Diff Context Resource
  • Diff List Resource
  • Diff Resource
  • File Attachment List Resource
  • File Attachment Resource
  • Review List Resource
  • Review Resource
  • Review Draft Resource
  • Review Request Draft Resource
  • Draft Diff List Resource
  • Draft File Attachment List Resource
  • Draft Screenshot List Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Screenshot Resource
  • Status Update List Resource
  • Status Update Resource
  • Review Request Resource
  • Change List Resource
  • Change Resource
  • Diff Context Resource
  • Diff List Resource
  • Diff Resource
  • Diff Commit List Resource
  • File Diff List Resource
  • File Attachment List Resource
  • File Attachment Resource
  • File Attachment Comment List Resource
  • Review List Resource
  • Review Resource
  • Review Diff Comment List Resource
  • Review File Attachment Comment List Resource
  • Review General Comment List Resource
  • Review Reply List Resource
  • Review Screenshot Comment List Resource
  • Review Draft Resource
  • Review Request Draft Resource
  • Draft Diff List Resource
  • Draft Diff Resource
  • Draft File Attachment List Resource
  • Draft File Attachment Resource
  • Draft Screenshot List Resource
  • Draft Screenshot Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Screenshot Resource
  • Screenshot Comment List Resource
  • Status Update List Resource
  • Status Update Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Screenshot Resource
  • Screenshot Comment List Resource
  • Screenshot Resource
  • Screenshot Comment List Resource
  • Screenshot Comment List Resource
  • Draft Diff List Resource
  • Draft Diff Resource
  • Draft Diff Commit List Resource
  • Draft Diff Commit Resource
  • Draft File Diff List Resource
  • Draft File Diff Resource
  • Draft Diff Resource
  • Draft Diff Commit List Resource
  • Draft Diff Commit Resource
  • Draft File Diff List Resource
  • Draft File Diff Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft Diff Commit List Resource
  • Draft Diff Commit Resource
  • Draft Diff Commit Resource
  • Draft File Diff List Resource
  • Draft File Diff Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft File Diff Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft File Attachment List Resource
  • Draft File Attachment Resource
  • Draft File Attachment Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft Screenshot List Resource
  • Draft Screenshot Resource
  • Draft Screenshot Resource
  • Review Request Draft Resource
  • Draft Diff List Resource
  • Draft Diff Resource
  • Draft Diff Commit List Resource
  • Draft File Diff List Resource
  • Draft File Attachment List Resource
  • Draft File Attachment Resource
  • Draft Screenshot List Resource
  • Draft Screenshot Resource
  • Review List Resource
  • Review Resource
  • Review Diff Comment List Resource
  • Review Diff Comment Resource
  • Review File Attachment Comment List Resource
  • Review File Attachment Comment Resource
  • Review General Comment List Resource
  • Review General Comment Resource
  • Review Reply List Resource
  • Review Reply Resource
  • Review Reply Draft Resource
  • Review Screenshot Comment List Resource
  • Review Screenshot Comment Resource
  • Review Draft Resource
  • Review Resource
  • Review Diff Comment List Resource
  • Review Diff Comment Resource
  • Review File Attachment Comment List Resource
  • Review File Attachment Comment Resource
  • Review General Comment List Resource
  • Review General Comment Resource
  • Review Reply List Resource
  • Review Reply Resource
  • Review Reply Diff Comment List Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply General Comment List Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Draft Resource
  • Review Screenshot Comment List Resource
  • Review Screenshot Comment Resource
  • Review Draft Resource
  • Review Diff Comment List Resource
  • Review Diff Comment Resource
  • Review Diff Comment Resource
  • Review File Attachment Comment List Resource
  • Review File Attachment Comment Resource
  • Review File Attachment Comment Resource
  • Review General Comment List Resource
  • Review General Comment Resource
  • Review General Comment Resource
  • Review Screenshot Comment List Resource
  • Review Screenshot Comment Resource
  • Review Screenshot Comment Resource
  • Review Reply Draft Resource
  • Review Reply List Resource
  • Review Reply Resource
  • Review Reply Diff Comment List Resource
  • Review Reply Diff Comment Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply General Comment List Resource
  • Review Reply General Comment Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Screenshot Comment Resource
  • Review Reply Draft Resource
  • Review Reply Resource
  • Review Reply Diff Comment List Resource
  • Review Reply Diff Comment Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply General Comment List Resource
  • Review Reply General Comment Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Screenshot Comment Resource
  • Review Reply Diff Comment List Resource
  • Review Reply Diff Comment Resource
  • Review Reply Diff Comment Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply General Comment List Resource
  • Review Reply General Comment Resource
  • Review Reply General Comment Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Screenshot Comment Resource
  • Review Reply Screenshot Comment Resource
  • Search Resource
  • Status Update List Resource
  • Status Update Resource
  • Status Update Resource
  • API Token List Resource
  • API Token Resource
  • API Token Resource
  • Archived Review Request List Resource
  • Archived Review Request Resource
  • Archived Review Request Resource
  • Muted Review Request List Resource
  • Muted Review Request Resource
  • Muted Review Request Resource
  • Session Resource
  • User List Resource
  • User Resource
  • API Token List Resource
  • API Token Resource
  • Archived Review Request List Resource
  • Archived Review Request Resource
  • Muted Review Request List Resource
  • Muted Review Request Resource
  • User File Attachment List Resource
  • User File Attachment Resource
  • Watched List Resource
  • Watched Review Group List Resource
  • Watched Review Request List Resource
  • User Resource
  • API Token List Resource
  • API Token Resource
  • Archived Review Request List Resource
  • Archived Review Request Resource
  • Muted Review Request List Resource
  • Muted Review Request Resource
  • User File Attachment List Resource
  • User File Attachment Resource
  • Watched List Resource
  • Watched Review Group List Resource
  • Watched Review Group Resource
  • Watched Review Request List Resource
  • Watched Review Request Resource
  • User File Attachment List Resource
  • User File Attachment Resource
  • User File Attachment Resource
  • Watched Review Group List Resource
  • Watched Review Group Resource
  • Watched Review Group Resource
  • Watched Review Request List Resource
  • Watched Review Request Resource
  • Watched Review Request Resource
  • Watched List Resource
  • Watched Review Group List Resource
  • Watched Review Group Resource
  • Watched Review Request List Resource
  • Watched Review Request Resource
  • Validation List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • WebHook List Resource
  • WebHook Resource
  • WebHook Resource
  • Errors
  • 100 - Does Not Exist
  • 101 - Permission Denied
  • 102 - Invalid Attribute
  • 103 - Not Logged In
  • 104 - Login Failed
  • 105 - Invalid Form Data
  • 106 - Missing Attribute
  • 107 - Enable Extension Failed
  • 108 - Disable Extension Failed
  • 109 - Extension Already Installed
  • 110 - Install Extension Failed
  • 111 - Duplicate Item
  • 112 - OAuth2 Missing Scope Error
  • 113 - OAuth2 Access Denied Error
  • 114 - Rate Limit Exceeded
  • 203 - Invalid Change Number
  • 204 - Change Number In Use
  • 205 - Missing Repository
  • 206 - Invalid Repository
  • 207 - Repository File Not Found
  • 208 - Invalid User
  • 209 - Repository Action Not Supported
  • 210 - Repository Information Error
  • 212 - Empty Changeset
  • 213 - Server Configuration Error
  • 214 - Bad Host Key
  • 215 - Unverified Host Key
  • 216 - Unverified Host Certificate
  • 217 - Missing User Key
  • 218 - Repository Authentication Error
  • 219 - Diff Empty
  • 220 - Diff Too Big
  • 221 - File Retrieval Error
  • 222 - Hosting Service Authentication Error
  • 223 - Group Already Exists
  • 224 - Diff Parse Error
  • 225 - Publish Error
  • 226 - User Query Error
  • 227 - Commit ID Already Exists
  • 228 - Token Generation Failed
  • 230 - Could not close review request
  • 231 - Could not reopen review request
  • 232 - Ship-It Revocation Error
  • REST API 2.0
  • Overview
  • Authenticating
  • API Token Policies
  • OAuth2 Authentication
  • Rich Text Fields and Types
  • Storing/Accessing Extra Data
  • Resources
  • Root List Resource
  • Default Reviewer List Resource
  • Default Reviewer Resource
  • Extension List Resource
  • Extension Resource
  • Hosting Service Account List Resource
  • Hosting Service Account Resource
  • Hosting Service List Resource
  • Hosting Service Resource
  • OAuth2 Applications List Resource
  • OAuth2 Applications Resource
  • OAuth2 Tokens List Resource
  • OAuth2 Tokens Resource
  • Repository List Resource
  • Repository Resource
  • Review Group List Resource
  • Review Group Resource
  • Review Request List Resource
  • Review Request Resource
  • Search Resource
  • Server Info Resource
  • Session Resource
  • User List Resource
  • User Resource
  • Validation List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • WebHook List Resource
  • WebHook Resource
  • Server Info Resource
  • Default Reviewer List Resource
  • Default Reviewer Resource
  • Default Reviewer Resource
  • Diff Context Resource
  • Diff List Resource
  • Diff Resource
  • Diff Commit List Resource
  • File Diff List Resource
  • Diff Resource
  • Diff Commit List Resource
  • Diff Commit Resource
  • File Diff List Resource
  • File Diff Resource
  • Diff Commit List Resource
  • Diff Commit Resource
  • Diff Commit Resource
  • Diff File Attachment List Resource
  • Diff File Attachment Resource
  • Diff File Attachment Resource
  • Original File Resource
  • Patched File Resource
  • Extension List Resource
  • Extension Resource
  • Extension Resource
  • Hosting Service List Resource
  • Hosting Service Resource
  • Hosting Service Resource
  • Hosting Service Account List Resource
  • Hosting Service Account Resource
  • Remote Repository List Resource
  • Hosting Service Account Resource
  • Remote Repository List Resource
  • Remote Repository Resource
  • Remote Repository List Resource
  • Remote Repository Resource
  • Remote Repository Resource
  • OAuth2 Applications List Resource
  • OAuth2 Applications Resource
  • OAuth2 Applications Resource
  • OAuth2 Tokens List Resource
  • OAuth2 Tokens Resource
  • OAuth2 Tokens Resource
  • Repository List Resource
  • Repository Resource
  • Diff File Attachment List Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository Resource
  • Diff File Attachment List Resource
  • Diff File Attachment Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Group Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository User Resource
  • Repository Branches Resource
  • Repository Commits Resource
  • Repository Group List Resource
  • Repository Group Resource
  • Repository Group Resource
  • Repository Info Resource
  • Repository User List Resource
  • Repository User Resource
  • Repository User Resource
  • Review Group List Resource
  • Review Group Resource
  • Review Group User List Resource
  • Review Group Resource
  • Review Group User List Resource
  • Review Group User Resource
  • Review Group User List Resource
  • Review Group User Resource
  • Review Group User Resource
  • Change List Resource
  • Change Resource
  • Change Resource
  • File Attachment List Resource
  • File Attachment Resource
  • File Attachment Comment List Resource
  • File Attachment Resource
  • File Attachment Comment List Resource
  • File Attachment Comment List Resource
  • File Diff List Resource
  • File Diff Resource
  • File Diff Comment List Resource
  • Original File Resource
  • Patched File Resource
  • File Diff Resource
  • File Diff Comment List Resource
  • Original File Resource
  • Patched File Resource
  • File Diff Comment List Resource
  • Review Request List Resource
  • Review Request Resource
  • Change List Resource
  • Diff Context Resource
  • Diff List Resource
  • File Attachment List Resource
  • Review List Resource
  • Review Request Draft Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Status Update List Resource
  • Review Request Resource
  • Change List Resource
  • Change Resource
  • Diff Context Resource
  • Diff List Resource
  • Diff Resource
  • File Attachment List Resource
  • File Attachment Resource
  • Review List Resource
  • Review Resource
  • Review Draft Resource
  • Review Request Draft Resource
  • Draft Diff List Resource
  • Draft File Attachment List Resource
  • Draft Screenshot List Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Screenshot Resource
  • Status Update List Resource
  • Status Update Resource
  • Review Request Last Update Resource
  • Screenshot List Resource
  • Screenshot Resource
  • Screenshot Comment List Resource
  • Screenshot Resource
  • Screenshot Comment List Resource
  • Screenshot Comment List Resource
  • Draft Diff List Resource
  • Draft Diff Resource
  • Draft Diff Commit List Resource
  • Draft File Diff List Resource
  • Draft Diff Resource
  • Draft Diff Commit List Resource
  • Draft Diff Commit Resource
  • Draft File Diff List Resource
  • Draft File Diff Resource
  • Draft Diff Commit List Resource
  • Draft Diff Commit Resource
  • Draft Diff Commit Resource
  • Draft File Diff List Resource
  • Draft File Diff Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft File Diff Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft File Attachment List Resource
  • Draft File Attachment Resource
  • Draft File Attachment Resource
  • Draft Original File Resource
  • Draft Patched File Resource
  • Draft Screenshot List Resource
  • Draft Screenshot Resource
  • Draft Screenshot Resource
  • Review Request Draft Resource
  • Draft Diff List Resource
  • Draft Diff Resource
  • Draft File Attachment List Resource
  • Draft File Attachment Resource
  • Draft Screenshot List Resource
  • Draft Screenshot Resource
  • Review List Resource
  • Review Resource
  • Review Diff Comment List Resource
  • Review File Attachment Comment List Resource
  • Review General Comment List Resource
  • Review Reply List Resource
  • Review Screenshot Comment List Resource
  • Review Draft Resource
  • Review Resource
  • Review Diff Comment List Resource
  • Review Diff Comment Resource
  • Review File Attachment Comment List Resource
  • Review File Attachment Comment Resource
  • Review General Comment List Resource
  • Review General Comment Resource
  • Review Reply List Resource
  • Review Reply Resource
  • Review Reply Draft Resource
  • Review Screenshot Comment List Resource
  • Review Screenshot Comment Resource
  • Review Draft Resource
  • Review Diff Comment List Resource
  • Review Diff Comment Resource
  • Review Diff Comment Resource
  • Review File Attachment Comment List Resource
  • Review File Attachment Comment Resource
  • Review File Attachment Comment Resource
  • Review General Comment List Resource
  • Review General Comment Resource
  • Review General Comment Resource
  • Review Screenshot Comment List Resource
  • Review Screenshot Comment Resource
  • Review Screenshot Comment Resource
  • Review Reply Draft Resource
  • Review Reply List Resource
  • Review Reply Resource
  • Review Reply Diff Comment List Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply General Comment List Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Draft Resource
  • Review Reply Resource
  • Review Reply Diff Comment List Resource
  • Review Reply Diff Comment Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply General Comment List Resource
  • Review Reply General Comment Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Screenshot Comment Resource
  • Review Reply Diff Comment List Resource
  • Review Reply Diff Comment Resource
  • Review Reply Diff Comment Resource
  • Review Reply File Attachment Comment List Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply File Attachment Comment Resource
  • Review Reply General Comment List Resource
  • Review Reply General Comment Resource
  • Review Reply General Comment Resource
  • Review Reply Screenshot Comment List Resource
  • Review Reply Screenshot Comment Resource
  • Review Reply Screenshot Comment Resource
  • Search Resource
  • Status Update List Resource
  • Status Update Resource
  • Status Update Resource
  • API Token List Resource
  • API Token Resource
  • API Token Resource
  • Archived Review Request List Resource
  • Archived Review Request Resource
  • Archived Review Request Resource
  • Muted Review Request List Resource
  • Muted Review Request Resource
  • Muted Review Request Resource
  • Session Resource
  • User List Resource
  • User Resource
  • API Token List Resource
  • Archived Review Request List Resource
  • Muted Review Request List Resource
  • User File Attachment List Resource
  • Watched List Resource
  • User Resource
  • API Token List Resource
  • API Token Resource
  • Archived Review Request List Resource
  • Archived Review Request Resource
  • Muted Review Request List Resource
  • Muted Review Request Resource
  • User File Attachment List Resource
  • User File Attachment Resource
  • Watched List Resource
  • Watched Review Group List Resource
  • Watched Review Request List Resource
  • User File Attachment List Resource
  • User File Attachment Resource
  • User File Attachment Resource
  • Watched Review Group List Resource
  • Watched Review Group Resource
  • Watched Review Group Resource
  • Watched Review Request List Resource
  • Watched Review Request Resource
  • Watched Review Request Resource
  • Watched List Resource
  • Watched Review Group List Resource
  • Watched Review Group Resource
  • Watched Review Request List Resource
  • Watched Review Request Resource
  • Validation List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • Validate Diff List Resource
  • Validate Diff Commit List Resource
  • WebHook List Resource
  • WebHook Resource
  • WebHook Resource
  • Errors
  • 100 - Does Not Exist
  • 101 - Permission Denied
  • 102 - Invalid Attribute
  • 103 - Not Logged In
  • 104 - Login Failed
  • 105 - Invalid Form Data
  • 106 - Missing Attribute
  • 107 - Enable Extension Failed
  • 108 - Disable Extension Failed
  • 109 - Extension Already Installed
  • 110 - Install Extension Failed
  • 111 - Duplicate Item
  • 112 - OAuth2 Missing Scope Error
  • 113 - OAuth2 Access Denied Error
  • 114 - Rate Limit Exceeded
  • 203 - Invalid Change Number
  • 204 - Change Number In Use
  • 205 - Missing Repository
  • 206 - Invalid Repository
  • 207 - Repository File Not Found
  • 208 - Invalid User
  • 209 - Repository Action Not Supported
  • 210 - Repository Information Error
  • 212 - Empty Changeset
  • 213 - Server Configuration Error
  • 214 - Bad Host Key
  • 215 - Unverified Host Key
  • 216 - Unverified Host Certificate
  • 217 - Missing User Key
  • 218 - Repository Authentication Error
  • 219 - Diff Empty
  • 220 - Diff Too Big
  • 221 - File Retrieval Error
  • 222 - Hosting Service Authentication Error
  • 223 - Group Already Exists
  • 224 - Diff Parse Error
  • 225 - Publish Error
  • 226 - User Query Error
  • 227 - Commit ID Already Exists
  • 228 - Token Generation Failed
  • 230 - Could not close review request
  • 231 - Could not reopen review request
  • 232 - Ship-It Revocation Error
  • Glossary
  • Extending Review Board
  • Extension Files/Package Layout
  • Creating an Extension Class
  • Extension Configuration
  • Database Models
  • Extension Static Media Files
  • JavaScript Extensions
  • Testing Extensions
  • Extension Distribution
  • Writing Review Board Extensions
  • The rbext Tool
  • Extension Hooks
  • AccountPageFormsHook
  • AccountPagesHook
  • Action Hooks
  • AdminWidgetHook
  • APIExtraDataAccessHook
  • AuthBackendHook
  • AvatarServiceHook
  • CommentDetailDisplayHook
  • DashboardColumnsHook
  • DashboardSidebarItemsHook
  • DataGridColumnsHook
  • EmailHook
  • ReviewRequestPublishedEmailHook
  • ReviewRequestClosedEmailHook
  • ReviewPublishedEmailHook
  • ReviewReplyPublishedEmailHook
  • FileAttachmentThumbnailHook
  • FileDiffACLHook
  • HostingServiceHook
  • IntegrationHook
  • NavigationBarHook
  • ReviewRequestApprovalHook
  • ReviewRequestFieldsHook
  • ReviewRequestFieldSetsHook
  • ReviewUIHook
  • SignalHook
  • TemplateHook
  • URLHook
  • UserInfoboxHook
  • UserPageSidebarItemsHook
  • WebAPICapabilitiesHook
  • JavaScript Extension Hooks
  • CommentDialogHook
  • ReviewDialogCommentHook
  • ReviewDialogHook
  • Adding Review Request Fields
  • Review UI Integration
  • Writing Authentication Backends
  • Writing Legacy Authentication Backends
  • Extending the Web API
  • Module and Class References
  • reviewboard
  • reviewboard.deprecation
  • reviewboard.rb_platform
  • reviewboard.signals
  • reviewboard.accounts.backends
  • reviewboard.accounts.backends.ad
  • reviewboard.accounts.backends.base
  • reviewboard.accounts.backends.http_digest
  • reviewboard.accounts.backends.ldap
  • reviewboard.accounts.backends.nis
  • reviewboard.accounts.backends.registry
  • reviewboard.accounts.backends.standard
  • reviewboard.accounts.backends.x509
  • reviewboard.accounts.decorators
  • reviewboard.accounts.errors
  • reviewboard.accounts.managers
  • reviewboard.accounts.middleware
  • reviewboard.accounts.mixins
  • reviewboard.accounts.models
  • reviewboard.accounts.pages
  • reviewboard.accounts.privacy
  • reviewboard.accounts.templatetags.accounts
  • reviewboard.accounts.trophies
  • reviewboard.accounts.forms.auth
  • reviewboard.accounts.forms.pages
  • reviewboard.accounts.forms.registration
  • reviewboard.admin
  • reviewboard.admin.admin_sites
  • reviewboard.admin.cache_stats
  • reviewboard.admin.checks
  • reviewboard.admin.decorators
  • reviewboard.admin.form_widgets
  • reviewboard.admin.middleware
  • reviewboard.admin.model_admin
  • reviewboard.admin.security_checks
  • reviewboard.admin.server
  • reviewboard.admin.siteconfig
  • reviewboard.admin.support
  • reviewboard.admin.validation
  • reviewboard.admin.widgets
  • reviewboard.attachments.forms
  • reviewboard.attachments.managers
  • reviewboard.attachments.mimetypes
  • reviewboard.attachments.models
  • reviewboard.avatars.registry
  • reviewboard.avatars.services
  • reviewboard.avatars.settings
  • reviewboard.avatars.templatetags.avatars
  • reviewboard.avatars.testcase
  • reviewboard.changedescs.models
  • reviewboard.datagrids.columns
  • reviewboard.datagrids.grids
  • reviewboard.datagrids.sidebar
  • reviewboard.diffviewer.chunk_generator
  • reviewboard.diffviewer.differ
  • reviewboard.diffviewer.diffutils
  • reviewboard.diffviewer.errors
  • reviewboard.diffviewer.forms
  • reviewboard.diffviewer.managers
  • reviewboard.diffviewer.models
  • reviewboard.diffviewer.models.diffcommit
  • reviewboard.diffviewer.models.diffset
  • reviewboard.diffviewer.models.diffset_history
  • reviewboard.diffviewer.models.filediff
  • reviewboard.diffviewer.models.legacy_file_diff_data
  • reviewboard.diffviewer.models.raw_file_diff_data
  • reviewboard.diffviewer.myersdiff
  • reviewboard.diffviewer.opcode_generator
  • reviewboard.diffviewer.parser
  • reviewboard.diffviewer.processors
  • reviewboard.diffviewer.renderers
  • reviewboard.diffviewer.smdiff
  • reviewboard.extensions.base
  • reviewboard.extensions.hooks
  • reviewboard.extensions.packaging
  • reviewboard.extensions.testing
  • reviewboard.extensions.testing.testcases
  • reviewboard.hostingsvcs.errors
  • reviewboard.hostingsvcs.forms
  • reviewboard.hostingsvcs.hook_utils
  • reviewboard.hostingsvcs.models
  • reviewboard.hostingsvcs.repository
  • reviewboard.hostingsvcs.service
  • reviewboard.hostingsvcs.testing
  • reviewboard.hostingsvcs.testing.testcases
  • reviewboard.hostingsvcs.utils.paginator
  • reviewboard.integrations
  • reviewboard.integrations.base
  • reviewboard.integrations.forms
  • reviewboard.integrations.models
  • reviewboard.integrations.urls
  • reviewboard.integrations.views
  • reviewboard.notifications
  • reviewboard.notifications.email
  • reviewboard.notifications.email.backend
  • reviewboard.notifications.email.decorators
  • reviewboard.notifications.email.hooks
  • reviewboard.notifications.email.message
  • reviewboard.notifications.email.utils
  • reviewboard.notifications.email.views
  • reviewboard.notifications.forms
  • reviewboard.notifications.managers
  • reviewboard.notifications.models
  • reviewboard.notifications.webhooks
  • reviewboard.reviews.actions
  • reviewboard.reviews.builtin_fields
  • reviewboard.reviews.chunk_generators
  • reviewboard.reviews.conditions
  • reviewboard.reviews.context
  • reviewboard.reviews.default_actions
  • reviewboard.reviews.detail
  • reviewboard.reviews.errors
  • reviewboard.reviews.features
  • reviewboard.reviews.fields
  • reviewboard.reviews.forms
  • reviewboard.reviews.managers
  • reviewboard.reviews.markdown_utils
  • reviewboard.reviews.models
  • reviewboard.reviews.signals
  • reviewboard.reviews.templatetags.reviewtags
  • reviewboard.reviews.ui.base
  • reviewboard.reviews.ui.image
  • reviewboard.reviews.ui.markdownui
  • reviewboard.reviews.ui.text
  • reviewboard.scmtools.certs
  • reviewboard.scmtools.conditions
  • reviewboard.scmtools.core
  • reviewboard.scmtools.crypto_utils
  • reviewboard.scmtools.errors
  • reviewboard.scmtools.forms
  • reviewboard.scmtools.managers
  • reviewboard.scmtools.models
  • reviewboard.scmtools.signals
  • reviewboard.scmtools.tests.testcases
  • reviewboard.search.fields
  • reviewboard.search.forms
  • reviewboard.search.indexes
  • reviewboard.search.search_backends.base
  • reviewboard.search.search_backends.elasticsearch
  • reviewboard.search.search_backends.registry
  • reviewboard.search.search_backends.whoosh
  • reviewboard.search.signal_processor
  • reviewboard.search.testing
  • reviewboard.site.conditions
  • reviewboard.site.context_processors
  • reviewboard.site.decorators
  • reviewboard.site.middleware
  • reviewboard.site.mixins
  • reviewboard.site.models
  • reviewboard.site.signals
  • reviewboard.site.templatetags.localsite
  • reviewboard.site.urlresolvers
  • reviewboard.site.validation
  • reviewboard.ssh.client
  • reviewboard.ssh.errors
  • reviewboard.ssh.policy
  • reviewboard.ssh.storage
  • reviewboard.ssh.utils
  • reviewboard.testing.hosting_services
  • reviewboard.testing.scmtool
  • reviewboard.testing.testcase
  • reviewboard.webapi.auth_backends
  • reviewboard.webapi.base
  • reviewboard.webapi.decorators
  • reviewboard.webapi.errors
  • reviewboard.webapi.mixins
  • reviewboard.webapi.models
  • reviewboard.webapi.server_info
  • reviewboard.webapi.tests.base
  • reviewboard
  • reviewboard.deprecation
  • reviewboard.rb_platform
  • reviewboard.signals
  • reviewboard.accounts.backends
  • reviewboard.accounts.backends.ad
  • reviewboard.accounts.backends.base
  • reviewboard.accounts.backends.http_digest
  • reviewboard.accounts.backends.ldap
  • reviewboard.accounts.backends.nis
  • reviewboard.accounts.backends.registry
  • reviewboard.accounts.backends.standard
  • reviewboard.accounts.backends.x509
  • reviewboard.accounts.decorators
  • reviewboard.accounts.errors
  • reviewboard.accounts.managers
  • reviewboard.accounts.middleware
  • reviewboard.accounts.mixins
  • reviewboard.accounts.models
  • reviewboard.accounts.pages
  • reviewboard.accounts.privacy
  • reviewboard.accounts.templatetags.accounts
  • reviewboard.accounts.trophies
  • reviewboard.accounts.forms.auth
  • reviewboard.accounts.forms.pages
  • reviewboard.accounts.forms.registration
  • reviewboard.admin
  • reviewboard.admin.admin_sites
  • reviewboard.admin.cache_stats
  • reviewboard.admin.checks
  • reviewboard.admin.decorators
  • reviewboard.admin.form_widgets
  • reviewboard.admin.middleware
  • reviewboard.admin.model_admin
  • reviewboard.admin.security_checks
  • reviewboard.admin.server
  • reviewboard.admin.siteconfig
  • reviewboard.admin.support
  • reviewboard.admin.validation
  • reviewboard.admin.widgets
  • reviewboard.attachments.forms
  • reviewboard.attachments.managers
  • reviewboard.attachments.mimetypes
  • reviewboard.attachments.models
  • reviewboard.avatars.registry
  • reviewboard.avatars.services
  • reviewboard.avatars.settings
  • reviewboard.avatars.templatetags.avatars
  • reviewboard.avatars.testcase
  • reviewboard.changedescs.models
  • reviewboard.datagrids.columns
  • reviewboard.datagrids.grids
  • reviewboard.datagrids.sidebar
  • reviewboard.diffviewer.chunk_generator
  • reviewboard.diffviewer.differ
  • reviewboard.diffviewer.diffutils
  • reviewboard.diffviewer.errors
  • reviewboard.diffviewer.forms
  • reviewboard.diffviewer.managers
  • reviewboard.diffviewer.models
  • reviewboard.diffviewer.models.diffcommit
  • reviewboard.diffviewer.models.diffset
  • reviewboard.diffviewer.models.diffset_history
  • reviewboard.diffviewer.models.filediff
  • reviewboard.diffviewer.models.legacy_file_diff_data
  • reviewboard.diffviewer.models.raw_file_diff_data
  • reviewboard.diffviewer.myersdiff
  • reviewboard.diffviewer.opcode_generator
  • reviewboard.diffviewer.parser
  • reviewboard.diffviewer.processors
  • reviewboard.diffviewer.renderers
  • reviewboard.diffviewer.smdiff
  • reviewboard.extensions.base
  • reviewboard.extensions.hooks
  • reviewboard.extensions.packaging
  • reviewboard.extensions.testing
  • reviewboard.extensions.testing.testcases
  • reviewboard.hostingsvcs.errors
  • reviewboard.hostingsvcs.forms
  • reviewboard.hostingsvcs.hook_utils
  • reviewboard.hostingsvcs.models
  • reviewboard.hostingsvcs.repository
  • reviewboard.hostingsvcs.service
  • reviewboard.hostingsvcs.testing
  • reviewboard.hostingsvcs.testing.testcases
  • reviewboard.hostingsvcs.utils.paginator
  • reviewboard.integrations
  • reviewboard.integrations.base
  • reviewboard.integrations.forms
  • reviewboard.integrations.models
  • reviewboard.integrations.urls
  • reviewboard.integrations.views
  • reviewboard.notifications
  • reviewboard.notifications.email
  • reviewboard.notifications.email.backend
  • reviewboard.notifications.email.decorators
  • reviewboard.notifications.email.hooks
  • reviewboard.notifications.email.message
  • reviewboard.notifications.email.utils
  • reviewboard.notifications.email.views
  • reviewboard.notifications.forms
  • reviewboard.notifications.managers
  • reviewboard.notifications.models
  • reviewboard.notifications.webhooks
  • reviewboard.reviews.actions
  • reviewboard.reviews.builtin_fields
  • reviewboard.reviews.chunk_generators
  • reviewboard.reviews.conditions
  • reviewboard.reviews.context
  • reviewboard.reviews.default_actions
  • reviewboard.reviews.detail
  • reviewboard.reviews.errors
  • reviewboard.reviews.features
  • reviewboard.reviews.fields
  • reviewboard.reviews.forms
  • reviewboard.reviews.managers
  • reviewboard.reviews.markdown_utils
  • reviewboard.reviews.models
  • reviewboard.reviews.signals
  • reviewboard.reviews.templatetags.reviewtags
  • reviewboard.reviews.ui.base
  • reviewboard.reviews.ui.image
  • reviewboard.reviews.ui.markdownui
  • reviewboard.reviews.ui.text
  • reviewboard.scmtools.certs
  • reviewboard.scmtools.conditions
  • reviewboard.scmtools.core
  • reviewboard.scmtools.crypto_utils
  • reviewboard.scmtools.errors
  • reviewboard.scmtools.forms
  • reviewboard.scmtools.managers
  • reviewboard.scmtools.models
  • reviewboard.scmtools.signals
  • reviewboard.scmtools.tests.testcases
  • reviewboard.search.fields
  • reviewboard.search.forms
  • reviewboard.search.indexes
  • reviewboard.search.search_backends.base
  • reviewboard.search.search_backends.elasticsearch
  • reviewboard.search.search_backends.registry
  • reviewboard.search.search_backends.whoosh
  • reviewboard.search.signal_processor
  • reviewboard.search.testing
  • reviewboard.site.conditions
  • reviewboard.site.context_processors
  • reviewboard.site.decorators
  • reviewboard.site.middleware
  • reviewboard.site.mixins
  • reviewboard.site.models
  • reviewboard.site.signals
  • reviewboard.site.templatetags.localsite
  • reviewboard.site.urlresolvers
  • reviewboard.site.validation
  • reviewboard.ssh.client
  • reviewboard.ssh.errors
  • reviewboard.ssh.policy
  • reviewboard.ssh.storage
  • reviewboard.ssh.utils
  • reviewboard.testing.hosting_services
  • reviewboard.testing.scmtool
  • reviewboard.testing.testcase
  • reviewboard.webapi.auth_backends
  • reviewboard.webapi.base
  • reviewboard.webapi.decorators
  • reviewboard.webapi.errors
  • reviewboard.webapi.mixins
  • reviewboard.webapi.models
  • reviewboard.webapi.server_info
  • reviewboard.webapi.tests.base
  • Frequently Asked Questions
  • General Index
  • Python Module Index
  • Release Notes
  • This documentation covers Review Board 4.0. You can select a version above or view the latest documentation.

    reviewboard.reviews.models¶

    class BaseComment(*args, **kwargs)[source]¶

    Bases: django.db.models.base.Model

    The base class for all comment types.

    OPEN = u'O'[source]¶
    RESOLVED = u'R'[source]¶
    DROPPED = u'D'[source]¶
    VERIFYING_RESOLVED = u'A'[source]¶
    VERIFYING_DROPPED = u'B'[source]¶
    ISSUE_STATUSES = ((u'O', u'Open'), (u'R', u'Resolved'), (u'D', u'Dropped'), (u'A', u'Waiting for verification to resolve'), (u'B', u'Waiting for verification to drop'))[source]¶
    ISSUE_STATUS_TO_STRING = {u'A': u'verifying-resolved', u'B': u'verifying-dropped', u'D': u'dropped', u'O': u'open', u'R': u'resolved'}[source]¶
    ISSUE_STRING_TO_STATUS = {u'dropped': u'D', u'open': u'O', u'resolved': u'R', u'verifying-dropped': u'B', u'verifying-resolved': u'A'}[source]¶
    issue_opened[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    issue_status[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    reply_to[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    timestamp[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    text[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    rich_text[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    extra_data[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    objects¶
    static issue_status_to_string(status)[source]¶

    Return a string representation of the status field.

    Parameters:status (unicode) – The value of the issue_status field.
    Returns:A string representation of the status used for the API and other interfaces.
    Return type:unicode
    static issue_string_to_status(status)[source]¶

    Return a DB representation of the given status string.

    Parameters:status (unicode) – The status string to convert.
    Returns:A value suitable for storing in the issue_status field.
    Return type:unicode
    require_verification[source]¶

    Whether this comment requires verification before closing.

    __init__(*args, **kwargs)[source]¶

    Initialize the comment.

    Parameters:
    • *args (tuple) – Positional arguments to pass through to the model initialization.
    • **kwargs (dict) – Keyword arguments to pass through to the model initialization.
    get_review_request()[source]¶

    Return this comment’s review request.

    Returns:The review request that this comment was made on.
    Return type:reviewboard.reviews.models.review_request.ReviewRequest
    get_review()[source]¶

    Return this comment’s review.

    Returns:The review containing this comment.
    Return type:reviewboard.reviews.models.review.Review
    get_review_url()[source]¶

    Return the URL to view this comment.

    Returns:The absolute URL to view this comment in the web UI.
    Return type:unicode
    is_reply()[source]¶

    Return whether this comment is a reply to another comment.

    Returns:True if the comment is a reply.
    Return type:bool
    is_accessible_by(user)[source]¶

    Return whether the user can access this comment.

    Parameters:user (django.contrib.auth.models.User) – The user being checked.
    Returns:True if the given user can access this comment.
    Return type:bool
    is_mutable_by(user)[source]¶

    Return whether the user can modify this comment.

    Parameters:user (django.contrib.auth.models.User) – The user being checked.
    Returns:True if the given user can modify this comment.
    Return type:bool
    public_replies(user=None)[source]¶

    Return the public replies to this comment.

    Parameters:user (django.contrib.auth.models.User, optional) – A user to filter by, if desired. If specified, only replies authored by this user will be returned.
    Returns:The public replies to this comment.
    Return type:list of reviewboard.reviews.models.base_comment.BaseComment
    can_change_issue_status(user)[source]¶

    Return whether the user can change the issue status.

    Currently, this is allowed for: - The user who owns the review request. - The user who opened the issue (posted the comment).

    Parameters:user (django.contrib.auth.models.User) – The user being checked.
    Returns:True if the given user is allowed to change the issue status.
    Return type:bool
    can_verify_issue_status(user)[source]¶

    Return whether the user can verify the issue status.

    Currently this is allowed for:

    • The user who opened the issue.
    • Administrators.
    Parameters:user (django.contrib.auth.models.User) – The user being checked.
    Returns:True if the given user is allowed to verify the issue status.
    Return type:bool
    save(**kwargs)[source]¶

    Save the comment.

    Parameters:**kwargs (dict) – Keyword arguments passed to the method (unused).
    __str__()[source]¶
    class Meta[source]¶
    abstract = False[source]¶
    app_label = u'reviews'[source]¶
    ordering = [u'timestamp'][source]¶
    __unicode__()[source]¶

    Return a string representation of the comment.

    Returns:A string representation of the comment.
    Return type:unicode
    get_extra_data_json()[source]¶
    get_issue_status_display(**morekwargs)[source]¶
    get_next_by_timestamp(**morekwargs)[source]¶
    get_previous_by_timestamp(**morekwargs)[source]¶
    reply_to_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    set_extra_data_json(json)[source]¶
    class Comment(*args, **kwargs)[source]¶

    Bases: reviewboard.reviews.models.base_comment.BaseComment

    A comment made on a diff.

    A comment can belong to a single filediff or to an interdiff between two filediffs. It can also have multiple replies.

    anchor_prefix = u'comment'[source]¶
    comment_type = u'diff'[source]¶
    filediff[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    interfilediff[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    first_line[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    num_lines[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    last_line[source]¶
    base_filediff_id[source]¶

    The base FileDiff ID for the cumulative diff this comment is on.

    get_absolute_url()[source]¶
    filediff_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    get_extra_data_json()[source]¶
    get_issue_status_display(**morekwargs)[source]¶
    get_next_by_timestamp(**morekwargs)[source]¶
    get_previous_by_timestamp(**morekwargs)[source]¶
    id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    interfilediff_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    replies[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    reply_to[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    review[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    set_extra_data_json(json)[source]¶
    class DefaultReviewer(*args, **kwargs)[source]¶

    Bases: django.db.models.base.Model

    Represents reviewers automatically added to review requests.

    A default reviewer entry automatically adds default reviewers to a review request when the diff modifies a file matching the file_regex pattern specified.

    This is useful when different groups own different parts of a codebase. Adding DefaultReviewer entries ensures that the right people will always see the review request and discussions.

    A file_regex of ".*" will add the specified reviewers by default for every review request.

    Note that this is keyed off the same LocalSite as its “repository” member.

    name[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    file_regex[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    repository[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    groups[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    people[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    local_site[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    objects = <reviewboard.reviews.managers.DefaultReviewerManager object>[source]¶
    is_accessible_by(user)[source]¶

    Returns whether the user can access this default reviewer.

    is_mutable_by(user)[source]¶

    Returns whether the user can modify or delete this default reviewer.

    Only those with the default_reviewer.change_group permission (such as administrators) can modify or delete default reviewers not bound to a LocalSite.

    LocalSite administrators can modify or delete them on their LocalSites.

    __str__()[source]¶
    __unicode__()[source]¶
    id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    local_site_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    class FileAttachmentComment(*args, **kwargs)[source]¶

    Bases: reviewboard.reviews.models.base_comment.BaseComment

    A comment on a file attachment.

    anchor_prefix = u'fcomment'[source]¶
    comment_type = u'file'[source]¶
    file_attachment[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    diff_against_file_attachment[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    review_ui[source]¶

    Return a ReviewUI appropriate for this comment.

    If a ReviewUI is available for this type of file, an instance of one will be returned that’s associated with this comment’s FileAttachment and the one being diffed against (if any).

    thumbnail[source]¶

    Returns the thumbnail for this comment, if any, as HTML.

    The thumbnail will be generated from the appropriate ReviewUI, if there is one for this type of file.

    get_absolute_url()[source]¶

    Returns the URL for this comment.

    get_link_text()[source]¶

    Returns the text for the link to the file.

    diff_against_file_attachment_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    file_attachment_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    get_extra_data_json()[source]¶
    get_issue_status_display(**morekwargs)[source]¶
    get_next_by_timestamp(**morekwargs)[source]¶
    get_previous_by_timestamp(**morekwargs)[source]¶
    id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    replies[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    reply_to[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    review[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    set_extra_data_json(json)[source]¶
    class GeneralComment(*args, **kwargs)[source]¶

    Bases: reviewboard.reviews.models.base_comment.BaseComment

    A comment on a review request that is not tied to any code or file.

    A general comment on a review request is used when a comment is not tied to specific lines of code or a special file attachment, and an issue is opened. Examples include suggestions for testing or pointing out errors in the change description.

    anchor_prefix = u'gcomment'[source]¶
    comment_type = u'general'[source]¶
    get_absolute_url()[source]¶
    get_extra_data_json()[source]¶
    get_issue_status_display(**morekwargs)[source]¶
    get_next_by_timestamp(**morekwargs)[source]¶
    get_previous_by_timestamp(**morekwargs)[source]¶
    id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    replies[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    reply_to[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    review[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    set_extra_data_json(json)[source]¶
    class Group(*args, **kwargs)[source]¶

    Bases: django.db.models.base.Model

    A group of people who can be targetted for review.

    This is usually used to separate teams at a company or components of a project.

    Each group can have an e-mail address associated with it, sending all review requests and replies to that address. If that e-mail address is blank, e-mails are sent individually to each member of that group.

    name[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    display_name[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    mailing_list[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    email_list_only[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    users[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    local_site[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    is_default_group[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    incoming_request_count = <djblets.db.fields.counter_field.CounterField: incoming_request_count>[source]¶
    invite_only[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    visible[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    extra_data[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    objects = <reviewboard.reviews.managers.ReviewGroupManager object>[source]¶
    is_accessible_by(user, request=None, silent=False)[source]¶

    Returns true if the user can access this group.

    is_mutable_by(user)[source]¶

    Returns whether or not the user can modify or delete the group.

    The group is mutable by the user if they are an administrator with proper permissions, or the group is part of a LocalSite and the user is in the admin list.

    __str__()[source]¶
    get_absolute_url()[source]¶
    clean()[source]¶

    Clean method for checking null unique_together constraints.

    Django has a bug where unique_together constraints for foreign keys aren’t checked properly if one of the relations is null. This means that users who aren’t using local sites could create multiple groups with the same name.

    __unicode__()[source]¶
    decrement_incoming_request_count(*args, **kwargs)[source]¶
    defaultreviewer_set[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    drafts[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    get_extra_data_json()[source]¶
    id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    increment_incoming_request_count(*args, **kwargs)[source]¶
    local_site_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    reinit_incoming_request_count()[source]¶
    reload_incoming_request_count()[source]¶
    repositories[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    review_requests[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    set_extra_data_json(json)[source]¶
    starred_by[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    class Review(*args, **kwargs)[source]¶

    Bases: django.db.models.base.Model

    A review of a review request.

    SHIP_IT_TEXT = u'Ship It!'[source]¶
    REVOKED_SHIP_IT_TEXT = u'~~Ship It!~~'[source]¶
    FIX_IT_THEN_SHIP_IT_TEXT = u'Fix it, then Ship it!'[source]¶
    review_request[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    user[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    timestamp[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    public[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    ship_it[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    base_reply_to[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    email_message_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    time_emailed[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    body_top[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    body_top_rich_text[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    body_bottom[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    body_bottom_rich_text[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    body_top_reply_to[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    body_bottom_reply_to[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    comments[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    screenshot_comments[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    file_attachment_comments[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    general_comments[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    extra_data[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    rich_text[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    reviewed_diffset[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    objects = <reviewboard.reviews.managers.ReviewManager object>[source]¶
    ship_it_only[source]¶

    Return if the review only contains a “Ship It!”.

    Returns:True if the review is only a “Ship It!” and False otherwise.
    Return type:bool
    can_user_revoke_ship_it(user)[source]¶

    Return whether a given user can revoke a Ship It.

    Parameters:user (django.contrib.auth.models.User) – The user to check permissions for.
    Returns:True if the user has permissions to revoke a Ship It. False if they don’t.
    Return type:bool
    revoke_ship_it(user)[source]¶

    Revoke the Ship It status on this review.

    The Ship It status will be removed, and the ReviewRequest.shipit_count counter will be decremented.

    If the body_top text is equal to SHIP_IT_TEXT, then it will replaced with REVOKED_SHIP_IT_TEXT.

    Callers are responsible for checking whether the user has permission to revoke Ship Its by using can_user_revoke_ship_it().

    Raises:reviewboard.reviews.errors.RevokeShipItError – The Ship It could not be revoked. Details will be in the error message.
    all_participants[source]¶

    Return all participants in the review’s discussion.

    This will always contain the user who filed the review, plus every user who has published a reply to the review.

    The result is cached. Repeated calls will return the same result.

    Returns:The users who participated in the discussion.
    Return type:set of django.contrib.auth.models.User
    is_accessible_by(user)[source]¶

    Returns whether the user can access this review.

    is_mutable_by(user)[source]¶

    Returns whether the user can modify this review.

    __str__()[source]¶
    is_reply()[source]¶

    Returns whether or not this review is a reply to another review.

    is_new_for_user(user, last_visited)[source]¶

    Return whether this review is new for a user.

    The review is considered new if their last visited time is older than the review’s published timestamp and the user is not the one who created the review.

    Parameters:
    • user (django.contrib.auth.models.User) – The user accessing the review.
    • last_visited (datetime.datetime) – The last time the user accessed a page where the review would be shown.
    Returns:

    True if the review is new to this user. False if it’s older than the last visited time or the user created it.

    Return type:

    bool

    public_replies()[source]¶

    Returns a list of public replies to this review.

    public_body_top_replies(user=None)[source]¶

    Returns a list of public replies to this review’s body top.

    public_body_bottom_replies(user=None)[source]¶

    Returns a list of public replies to this review’s body bottom.

    get_pending_reply(user)[source]¶

    Return the pending reply owned by the specified user.

    Parameters:user (django.contrib.auth.models.User) – The user to find the reply for.
    Returns:The pending reply object, if present. None if there is no pending reply.
    Return type:reviewboard.reviews.models.review.Review
    save(**kwargs)[source]¶
    publish(user=None, trivial=False, to_owner_only=False, request=None)[source]¶

    Publishes this review.

    This will make the review public and update the timestamps of all contained comments.

    delete()[source]¶

    Deletes this review.

    This will enforce that all contained comments are also deleted.

    get_absolute_url()[source]¶
    get_all_comments(**kwargs)[source]¶

    Return a list of all contained comments of all types.

    has_comments(only_issues=False)[source]¶

    Return whether the review contains any comments/issues.

    Parameters:only_issues (bool, optional) – Whether or not to check for comments where issue_opened is True. True to check for issues, or False to check for comments only. Defaults to False.
    Returns:True if the review contains any comments/issues and False otherwise.
    Return type:bool
    __unicode__()[source]¶
    base_reply_to_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    body_bottom_replies[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    body_bottom_reply_to_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    body_top_replies[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    body_top_reply_to_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    get_extra_data_json()[source]¶
    get_next_by_timestamp(**morekwargs)[source]¶
    get_previous_by_timestamp(**morekwargs)[source]¶
    id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    replies[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    review_request_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    reviewed_diffset_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    set_extra_data_json(json)[source]¶
    status_update[source]¶

    Accessor to the related object on the reverse side of a one-to-one relation.

    In the example:

    class Restaurant(Model):
        place = OneToOneField(Place, related_name='restaurant')
    

    place.restaurant is a ReverseOneToOneDescriptor instance.

    user_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    class ReviewRequest(*args, **kwargs)[source]¶

    Bases: reviewboard.reviews.models.base_review_request_details.BaseReviewRequestDetails

    A review request.

    This is one of the primary models in Review Board. Most everything is associated with a review request.

    The ReviewRequest model contains detailed information on a review request. Some fields are user-modifiable, while some are used for internal state.

    PENDING_REVIEW = u'P'[source]¶
    SUBMITTED = u'S'[source]¶
    DISCARDED = u'D'[source]¶
    STATUSES = ((u'P', u'Pending Review'), (u'S', u'Submitted'), (u'D', u'Discarded'))[source]¶
    ISSUE_COUNTER_FIELDS = {u'A': u'issue_verifying_count', u'B': u'issue_verifying_count', u'D': u'issue_dropped_count', u'O': u'issue_open_count', u'R': u'issue_resolved_count'}[source]¶
    summary[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    submitter[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    time_added[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    last_updated¶

    A descriptor for tracking the modification of a value.

    field_name¶

    The attribute name of the field on the model.

    Type:unicode
    state_name¶

    The attribute name of the state on the model.

    Type:unicode
    status[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    public[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    changenum[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    repository[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    email_message_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    time_emailed[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    diffset_history[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    target_groups[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    target_people[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    screenshots[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    inactive_screenshots[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    file_attachments[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    inactive_file_attachments[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    file_attachment_histories[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    changedescs[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    depends_on[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    last_review_activity_timestamp[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    shipit_count = <djblets.db.fields.counter_field.CounterField: shipit_count>[source]¶
    issue_open_count = <djblets.db.fields.counter_field.CounterField: issue_open_count>[source]¶
    issue_resolved_count = <djblets.db.fields.counter_field.CounterField: issue_resolved_count>[source]¶
    issue_dropped_count = <djblets.db.fields.counter_field.CounterField: issue_dropped_count>[source]¶
    issue_verifying_count = <djblets.db.fields.counter_field.CounterField: issue_verifying_count>[source]¶
    screenshots_count = <djblets.db.fields.relation_counter_field.RelationCounterField: screenshots_count>[source]¶
    inactive_screenshots_count = <djblets.db.fields.relation_counter_field.RelationCounterField: inactive_screenshots_count>[source]¶
    file_attachments_count = <djblets.db.fields.relation_counter_field.RelationCounterField: file_attachments_count>[source]¶
    inactive_file_attachments_count = <djblets.db.fields.relation_counter_field.RelationCounterField: inactive_file_attachments_count>[source]¶
    local_site[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    local_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    objects = <reviewboard.reviews.managers.ReviewRequestManager object>[source]¶
    static status_to_string(status)[source]¶

    Return a string representation of a review request status.

    Parameters:status (unicode) – A single-character string representing the status.
    Returns:A longer string representation of the status suitable for use in the API.
    Return type:unicode
    static string_to_status(status)[source]¶

    Return a review request status from an API string.

    Parameters:status (unicode) – A string from the API representing the status.
    Returns:A single-character string representing the status, suitable for storage in the status field.
    Return type:unicode
    get_commit()[source]¶
    set_commit(commit_id)[source]¶
    commit[source]¶
    approved[source]¶

    Returns whether or not a review request is approved by reviewers.

    On a default installation, a review request is approved if it has at least one Ship It!, and doesn’t have any open issues.

    Extensions may customize approval by providing their own ReviewRequestApprovalHook.

    approval_failure[source]¶

    Returns the error indicating why a review request isn’t approved.

    If approved is False, this will provide the text describing why it wasn’t approved.

    Extensions may customize approval by providing their own ReviewRequestApprovalHook.

    owner[source]¶

    The owner of a review request.

    This is an alias for submitter. It provides compatibilty with ReviewRequestDraft.owner, for functions working with either method, and for review request fields, but it cannot be used for queries.

    created_with_history[source]¶

    Whether or not this review request was created with commit support.

    This property can only be changed before the review request is created (i.e., before save() is called and it has a primary key assigned).

    review_participants[source]¶

    Return the participants in reviews on the review request.

    This will contain the users who published any reviews or replies on the review request. The list will be in username sort order and will not contain duplicates.

    This will only contain the owner of the review request if they’ve filed a review or reply.

    Returns:The users who filed reviews or replies.
    Return type:set of django.contrib.auth.models.User
    get_new_reviews(user)[source]¶

    Returns all new reviews since last viewing this review request.

    This will factor in the time the user last visited the review request, and find any reviews that have been added or updated since.

    get_display_id()[source]¶

    Returns the ID that should be exposed to the user.

    display_id[source]¶

    Returns the ID that should be exposed to the user.

    get_public_reviews()[source]¶

    Returns all public top-level reviews for this review request.

    is_accessible_by(user, local_site=None, request=None, silent=False)[source]¶

    Returns whether or not the user can read this review request.

    This performs several checks to ensure that the user has access. This user has access if:

    • The review request is public or the user can modify it (either by being an owner or having special permissions).
    • The repository is public or the user has access to it (either by being explicitly on the allowed users list, or by being a member of a review group on that list).
    • The user is listed as a requested reviewer or the user has access to one or more groups listed as requested reviewers (either by being a member of an invite-only group, or the group being public).
    is_mutable_by(user)[source]¶

    Return whether the user can modify this review request.

    Parameters:user (django.contrib.auth.models.User) – The user to check.
    Returns:Whether the user can modify this review request.
    Return type:bool
    is_status_mutable_by(user)[source]¶

    Return whether the user can modify this review request’s status.

    Parameters:user (django.contrib.auth.models.User) – The user to check.
    Returns:Whether the user can modify this review request’s status.
    Return type:bool
    is_deletable_by(user)[source]¶

    Return whether the user can delete this review request.

    Parameters:user (django.contrib.auth.models.User) – The user to check.
    Returns:Whether the user can delete this review request.
    Return type:bool
    get_draft(user=None)[source]¶

    Returns the draft of the review request.

    If a user is specified, than the draft will be returned only if owned by the user. Otherwise, None will be returned.

    get_pending_review(user)[source]¶

    Returns the pending review owned by the specified user, if any.

    This will return an actual review, not a reply to a review.

    get_last_activity_info(diffsets=None, reviews=None)[source]¶

    Return the last public activity information on the review request.

    Parameters:
    • diffsets (list of reviewboard.diffviewer.models.DiffSet, optional) –

      The list of diffsets to compare for latest activity.

      If not provided, this will be populated with the last diffset.

    • reviews (list of reviewboard.reviews.models.Review, optional) –

      The list of reviews to compare for latest activity.

      If not provided, this will be populated with the latest review.

    Returns:

    A dictionary with the following keys:

    timestamp:

    The datetime that the object was updated.

    updated_object:

    The object that was updated. This will be one of the following:

    • The ReviewRequest itself.
    • A Review.
    • A DiffSet.
    changedesc:

    The latest ChangeDescription, if any.

    Return type:

    dict

    changeset_is_pending(commit_id)[source]¶

    Returns whether the associated changeset is pending commit.

    For repositories that support it, this will return whether the associated changeset is pending commit. This requires server-side knowledge of the change.

    get_absolute_url()[source]¶
    get_diffsets()[source]¶

    Returns a list of all diffsets on this review request.

    This will also fetch all associated FileDiffs, as well as a count of the number of files (stored in DiffSet.file_count).

    get_latest_diffset()[source]¶

    Returns the latest diffset for this review request.

    get_close_info()[source]¶

    Return metadata of the most recent closing of a review request.

    This is a helper which is used to gather the data which is rendered in the close description boxes on various pages.

    Returns:A dictionary with the following keys:
    'close_description' (unicode):
    Description of review request upon closing.
    'is_rich_text' (bool):
    Boolean whether description is rich text.
    'timestamp' (datetime.datetime):
    Time of review requests last closing.
    Return type:dict
    get_blocks()[source]¶

    Returns the list of review request this one blocks.

    The returned value will be cached for future lookups.

    save(update_counts=False, old_submitter=None, **kwargs)[source]¶
    delete(**kwargs)[source]¶
    can_publish()[source]¶
    can_add_default_reviewers()[source]¶

    Return whether default reviewers can be added to the review request.

    Default reviewers can only be added if the review request supports repositories and doesn’t yet have any published diffs.

    Returns:True if new default reviewers can be added. False if they cannot.
    Return type:bool
    close(close_type=None, user=None, description=None, rich_text=False, **kwargs)[source]¶

    Closes the review request.

    Parameters:
    • close_type (unicode) – How the close occurs. This should be one of SUBMITTED or DISCARDED.
    • user (django.contrib.auth.models.User) – The user who is closing the review request.
    • description (unicode) – An optional description that indicates why the review request was closed.
    • rich_text (bool) – Indicates whether or not that the description is rich text.
    Raises:
    • ValueError – The provided close type is not a valid value.
    • PermissionError – The user does not have permission to close the review request.
    • TypeError – Keyword arguments were supplied to the function.

    Changed in version 3.0: The type argument is deprecated: close_type should be used instead.

    This method raises ValueError instead of AttributeError when the close_type has an incorrect value.

    reopen(user=None)[source]¶

    Reopens the review request for review.

    publish(user, trivial=False, validate_fields=True)[source]¶

    Publishes the current draft attached to this review request.

    The review request will be mark as public, and signals will be emitted for any listeners.

    determine_user_for_changedesc(changedesc)[source]¶

    Determine the user associated with the change description.

    Parameters:changedesc (reviewboard.changedescs.models.ChangeDescription) – The change description.
    Returns:The user associated with the change description.
    Return type:django.contrib.auth.models.User
    get_review_request()[source]¶

    Returns this review request.

    This is provided so that consumers can be passed either a ReviewRequest or a ReviewRequestDraft and retrieve the actual ReviewRequest regardless of the object.

    blocks[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    decrement_file_attachments_count(*args, **kwargs)[source]¶
    decrement_inactive_file_attachments_count(*args, **kwargs)[source]¶
    decrement_inactive_screenshots_count(*args, **kwargs)[source]¶
    decrement_issue_dropped_count(*args, **kwargs)[source]¶
    decrement_issue_open_count(*args, **kwargs)[source]¶
    decrement_issue_resolved_count(*args, **kwargs)[source]¶
    decrement_issue_verifying_count(*args, **kwargs)[source]¶
    decrement_screenshots_count(*args, **kwargs)[source]¶
    decrement_shipit_count(*args, **kwargs)[source]¶
    diffset_history_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    draft[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    draft_blocks[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    get_extra_data_json()[source]¶
    get_next_by_last_updated(**morekwargs)[source]¶
    get_next_by_time_added(**morekwargs)[source]¶
    get_previous_by_last_updated(**morekwargs)[source]¶
    get_previous_by_time_added(**morekwargs)[source]¶
    get_status_display(**morekwargs)[source]¶
    id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    increment_file_attachments_count(*args, **kwargs)[source]¶
    increment_inactive_file_attachments_count(*args, **kwargs)[source]¶
    increment_inactive_screenshots_count(*args, **kwargs)[source]¶
    increment_issue_dropped_count(*args, **kwargs)[source]¶
    increment_issue_open_count(*args, **kwargs)[source]¶
    increment_issue_resolved_count(*args, **kwargs)[source]¶
    increment_issue_verifying_count(*args, **kwargs)[source]¶
    increment_screenshots_count(*args, **kwargs)[source]¶
    increment_shipit_count(*args, **kwargs)[source]¶
    local_site_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    reinit_file_attachments_count()[source]¶
    reinit_inactive_file_attachments_count()[source]¶
    reinit_inactive_screenshots_count()[source]¶
    reinit_issue_dropped_count()[source]¶
    reinit_issue_open_count()[source]¶
    reinit_issue_resolved_count()[source]¶
    reinit_issue_verifying_count()[source]¶
    reinit_screenshots_count()[source]¶
    reinit_shipit_count()[source]¶
    reload_file_attachments_count()[source]¶
    reload_inactive_file_attachments_count()[source]¶
    reload_inactive_screenshots_count()[source]¶
    reload_issue_dropped_count()[source]¶
    reload_issue_open_count()[source]¶
    reload_issue_resolved_count()[source]¶
    reload_issue_verifying_count()[source]¶
    reload_screenshots_count()[source]¶
    reload_shipit_count()[source]¶
    repository_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    reviews[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    set_extra_data_json(json)[source]¶
    starred_by[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    status_updates[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    submitter_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    trophies[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    visits[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    class ReviewRequestDraft(*args, **kwargs)[source]¶

    Bases: reviewboard.reviews.models.base_review_request_details.BaseReviewRequestDetails

    A draft of a review request.

    When a review request is being modified, a special draft copy of it is created containing all the details of the review request. This copy can be modified and eventually saved or discarded. When saved, the new details are copied back over to the originating ReviewRequest.

    summary[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    owner[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    review_request[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    last_updated¶

    A descriptor for tracking the modification of a value.

    field_name¶

    The attribute name of the field on the model.

    Type:unicode
    state_name¶

    The attribute name of the state on the model.

    Type:unicode
    diffset[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    changedesc[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    target_groups[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    target_people[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    screenshots[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    inactive_screenshots[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    file_attachments[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    inactive_file_attachments[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    submitter[source]¶
    repository[source]¶
    local_site[source]¶
    depends_on[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    screenshots_count = <djblets.db.fields.relation_counter_field.RelationCounterField: screenshots_count>[source]¶
    inactive_screenshots_count = <djblets.db.fields.relation_counter_field.RelationCounterField: inactive_screenshots_count>[source]¶
    file_attachments_count = <djblets.db.fields.relation_counter_field.RelationCounterField: file_attachments_count>[source]¶
    inactive_file_attachments_count = <djblets.db.fields.relation_counter_field.RelationCounterField: inactive_file_attachments_count>[source]¶
    objects = <djblets.db.managers.ConcurrencyManager object>[source]¶
    commit[source]¶
    get_latest_diffset()[source]¶

    Returns the diffset for this draft.

    is_accessible_by(user)[source]¶

    Returns whether or not the user can access this draft.

    is_mutable_by(user)[source]¶

    Returns whether or not the user can modify this draft.

    static create(review_request, changedesc=None)[source]¶

    Create a draft based on a review request.

    This will copy over all the details of the review request that we care about. If a draft already exists for the review request, the draft will be returned.

    Parameters:
    • review_request (reviewboard.reviews.models.review_request.ReviewRequest) – The review request to fetch or create the draft from.
    • changedesc (reviewboard.changedescs.models.ChangeDescription) – A custom change description to set on the draft. This will always be set, overriding any previous one if already set.
    Returns:

    The resulting draft.

    Return type:

    ReviewRequestDraft

    publish(review_request=None, user=None, trivial=False, send_notification=True, validate_fields=True, timestamp=None)[source]¶

    Publish this draft.

    This is an internal method. Programmatic publishes should use reviewboard.reviews.models.review_request.ReviewRequest.publish() instead.

    This updates and returns the draft’s ChangeDescription, which contains the changed fields. This is used by the e-mail template to tell people what’s new and interesting.

    The keys that may be saved in fields_changed in the ChangeDescription are:

    • submitter
    • summary
    • description
    • testing_done
    • bugs_closed
    • depends_on
    • branch
    • target_groups
    • target_people
    • screenshots
    • screenshot_captions
    • diff
    • Any custom field IDs

    Each field in ‘fields_changed’ represents a changed field. This will save fields in the standard formats as defined by the ‘ChangeDescription’ documentation, with the exception of the ‘screenshot_captions’ and ‘diff’ fields.

    For the ‘screenshot_captions’ field, the value will be a dictionary of screenshot ID/dict pairs with the following fields:

    • old: The old value of the field
    • new: The new value of the field

    For the diff field, there is only ever an added field, containing the ID of the new diffset.

    Parameters:
    • review_request (reviewboard.reviews.models.review_request.ReviewRequest, optional) – The review request associated with this diff. If not provided, it will be looked up.
    • user (django.contrib.auth.models.User, optional) – The user publishing the draft. If not provided, this defaults to the review request submitter.
    • trivial (bool, optional) –

      Whether or not this is a trivial publish.

      Trivial publishes do not result in e-mail notifications.

    • send_notification (bool, optional) –

      Whether or not this will emit the reviewboard.reviews.signals.review_request_published signal.

      This parameter is intended for internal use only.

    • validate_fields (bool, optional) –

      Whether or not the fields should be validated.

      This should only be False in the case of programmatic publishes, e.g., from close as submitted hooks.

    • timestamp (datetime.datetime, optional) – The datetime that should be used for all timestamps for objects published (DiffSet, ChangeDescription) over the course of the method.
    Returns:

    The change description that results from this publish (if any).

    If this is an initial publish, there will be no change description (and this function will return None).

    Return type:

    reviewboard.changedescs.models.ChangeDescription

    update_from_commit_id(commit_id)[source]¶

    Update the data from a server-side changeset.

    If the commit ID refers to a pending changeset on an SCM which stores such things server-side (like Perforce), the details like the summary and description will be updated with the latest information.

    If the change number is the commit ID of a change which exists on the server, the summary and description will be set from the commit’s message, and the diff will be fetched from the SCM.

    Parameters:

    commit_id (unicode) – The commit ID or changeset ID that the draft will update from.

    Returns:

    The list of draft fields that have been updated from the commit.

    Return type:

    list of unicode

    Raises:
    • reviewboard.hostingsvcs.errors.HostingServiceError – The hosting service backing the repository encountered an error.
    • reviewboard.scmtools.errors.InvalidChangeNumberError – The commit ID could not be found in the repository.
    • reviewboard.scmtools.errors.SCMError – The repository tool encountered an error.
    • NotImplementedError – The repository does not support fetching information from commit IDs.
    update_from_pending_change(commit_id, changeset)[source]¶

    Update the data from a server-side pending changeset.

    This will fetch the metadata from the server and update the fields on the draft.

    Parameters:
    • commit_id (unicode) – The changeset ID that the draft will update from.
    • changeset (reviewboard.scmtools.core.ChangeSet) – The changeset information to update from.
    Returns:

    The list of draft fields that have been updated from the change.

    Return type:

    list of unicode

    update_from_committed_change(commit_id)[source]¶

    Update from a committed change present on the server.

    Fetches the commit message and diff from the repository and sets the relevant fields.

    Parameters:commit_id (unicode) – The commit ID to update from.
    Returns:The list of draft fields that have been updated from the commit message.
    Return type:list of unicode
    copy_fields_to_request(review_request)[source]¶

    Copies the draft information to the review request and updates the draft’s change description.

    get_review_request()[source]¶

    Returns the associated review request.

    changedesc_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    decrement_file_attachments_count(*args, **kwargs)[source]¶
    decrement_inactive_file_attachments_count(*args, **kwargs)[source]¶
    decrement_inactive_screenshots_count(*args, **kwargs)[source]¶
    decrement_screenshots_count(*args, **kwargs)[source]¶
    diffset_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    get_extra_data_json()[source]¶
    get_next_by_last_updated(**morekwargs)[source]¶
    get_previous_by_last_updated(**morekwargs)[source]¶
    id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    increment_file_attachments_count(*args, **kwargs)[source]¶
    increment_inactive_file_attachments_count(*args, **kwargs)[source]¶
    increment_inactive_screenshots_count(*args, **kwargs)[source]¶
    increment_screenshots_count(*args, **kwargs)[source]¶
    owner_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    reinit_file_attachments_count()[source]¶
    reinit_inactive_file_attachments_count()[source]¶
    reinit_inactive_screenshots_count()[source]¶
    reinit_screenshots_count()[source]¶
    reload_file_attachments_count()[source]¶
    reload_inactive_file_attachments_count()[source]¶
    reload_inactive_screenshots_count()[source]¶
    reload_screenshots_count()[source]¶
    review_request_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    set_extra_data_json(json)[source]¶
    class Screenshot(*args, **kwargs)[source]¶

    Bases: django.db.models.base.Model

    A screenshot associated with a review request.

    Like diffs, a screenshot can have comments associated with it. These comments are of type reviewboard.reviews.models.ScreenshotComment.

    caption[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    draft_caption[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    image[source]¶

    Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.

    filename[source]¶

    Returns the filename for display purposes.

    get_comments()[source]¶

    Returns all the comments made on this screenshot.

    get_thumbnail_url()[source]¶

    Returns the URL for the thumbnail, creating it if necessary.

    thumb()[source]¶

    Creates and returns HTML for this screenshot’s thumbnail.

    __str__()[source]¶
    get_review_request()[source]¶
    get_absolute_url()[source]¶
    save(**kwargs)[source]¶
    __unicode__()[source]¶
    comments[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    drafts[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    inactive_drafts[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    inactive_review_request[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    objects = <django.db.models.manager.Manager object>[source]¶
    review_request[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    class ScreenshotComment(*args, **kwargs)[source]¶

    Bases: reviewboard.reviews.models.base_comment.BaseComment

    A comment on a screenshot.

    anchor_prefix = u'scomment'[source]¶
    comment_type = u'screenshot'[source]¶
    screenshot[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    x[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    y[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    w[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    h[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    get_image_url()[source]¶

    Returns the URL for the thumbnail, creating it if necessary.

    image()[source]¶

    Returns HTML for a section of the screenshot for this comment.

    This will generate the cropped part of the screenshot referenced by this comment and returns the HTML markup embedding it.

    get_extra_data_json()[source]¶
    get_issue_status_display(**morekwargs)[source]¶
    get_next_by_timestamp(**morekwargs)[source]¶
    get_previous_by_timestamp(**morekwargs)[source]¶
    id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    replies[source]¶

    Accessor to the related objects manager on the reverse side of a many-to-one relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    parent.children is a ReverseManyToOneDescriptor instance.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    reply_to[source]¶

    Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

    In the example:

    class Child(Model):
        parent = ForeignKey(Parent, related_name='children')
    

    child.parent is a ForwardManyToOneDescriptor instance.

    review[source]¶

    Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

    In the example:

    class Pizza(Model):
        toppings = ManyToManyField(Topping, related_name='pizzas')
    

    pizza.toppings and topping.pizzas are ManyToManyDescriptor instances.

    Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

    screenshot_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    set_extra_data_json(json)[source]¶
    class StatusUpdate(*args, **kwargs)[source]¶

    Bases: django.db.models.base.Model

    A status update from a third-party service or extension.

    This status model allows external services (such as continuous integration services, Review Bot, etc.) to provide an update on their status. An example of this would be a CI tool which does experimental builds of changes. While the build is running, that tool would set its status to pending, and when it was done, would set it to one of the done states, and potentially associate it with a review containing issues.

    PENDING = u'P'[source]¶

    The pending state.

    DONE_SUCCESS = u'S'[source]¶

    The completed successfully state.

    DONE_FAILURE = u'F'[source]¶

    The completed with reported failures state.

    ERROR = u'E'[source]¶

    The error state.

    TIMEOUT = u'T'[source]¶

    Timeout state.

    NOT_YET_RUN = u'R'[source]¶

    Not yet run state.

    STATUSES = ((u'P', u'Pending'), (u'S', u'Done (Success)'), (u'F', u'Done (Failure)'), (u'E', u'Error'), (u'T', u'Timed Out'), (u'R', u'Not Yet Run'))[source]¶
    service_id[source]¶

    An identifier for the service posting this status update.

    This ID is self-assigned, and just needs to be unique to that service. Possible values can be an extension ID, webhook URL, or a script name.

    user[source]¶

    The user who created this status update.

    timestamp[source]¶

    The timestamp of the status update.

    summary[source]¶

    A user-visible short summary of the status update.

    This is typically the name of the integration or tool that was run.

    description[source]¶

    A user-visible description on the status update.

    This is shown in the UI adjacent to the summary. Typical results might be things like “running.” or “failed.”. This should include punctuation.

    url[source]¶

    An optional link.

    This is used in case the tool has some external page, such as a build results page on a CI system.

    url_text[source]¶

    Text for the link. If url is empty, this will not be used.

    state[source]¶

    The current state of this status update.

    This should be set to PENDING while the service is processing the update, and then to either DONE_SUCCESS or DONE_FAILURE once complete. If the service encountered some error which prevented completion, this should be set to ERROR.

    review_request[source]¶

    The review request that this status update is for.

    change_description[source]¶

    The change to the review request that this status update is for.

    If this is None, this status update refers to the review request as a whole (for example, the initial diff that was posted).

    review[source]¶

    An optional review created for this status update.

    This allows the third-party service to create comments and open issues.

    extra_data[source]¶

    Any extra data that the service wants to store for this status update.

    timeout[source]¶

    An (optional) timeout, in seconds. If this is non-None and the state has been PENDING for longer than this period (computed from the timestamp field), effective_state will be TIMEOUT.

    static state_to_string(state)[source]¶

    Return a string representation of a status update state.

    Parameters:state (unicode) – A single-character string representing the state.
    Returns:A longer string representation of the state suitable for use in the API.
    Return type:unicode
    static string_to_state(state)[source]¶

    Return a status update state from an API string.

    Parameters:state (unicode) – A string from the API representing the state.
    Returns:A single-character string representing the state, suitable for storage in the state field.
    Return type:unicode
    is_mutable_by(user)[source]¶

    Return whether the user can modify this status update.

    Parameters:user (django.contrib.auth.models.User) – The user to check.
    Returns:True if the user can modify this status update.
    Return type:bool
    effective_state[source]¶

    The state of the status update, taking into account timeouts.

    drop_open_issues()[source]¶

    Drop any open issues associated with this status update.

    can_run[source]¶

    Whether or not the checker associated can be run.

    Type:
    bool
    action_name[source]¶

    The name of the action to use for running or re-running the check.

    Type:
    unicode
    run()[source]¶

    Run the tool associated with this StatusUpdate.

    change_description_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    get_extra_data_json()[source]¶
    get_next_by_timestamp(**morekwargs)[source]¶
    get_previous_by_timestamp(**morekwargs)[source]¶
    get_state_display(**morekwargs)[source]¶
    id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    objects = <django.db.models.manager.Manager object>[source]¶
    review_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    review_request_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    set_extra_data_json(json)[source]¶
    user_id[source]¶

    A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

    Keep up with the latest Review Board releases, security updates, and helpful information.

    About
    News
    Demo
    RBCommons Hosting
    Integrations
    Happy Users
    Support Options
    Documentation
    FAQ
    User Manual
    RBTools
    Administration Guide
    Power Pack
    Release Notes
    Downloads
    Review Board
    RBTools
    Djblets
    Power Pack
    Package Store
    PGP Signatures
    Contributing
    Bug Tracker
    Submit Patches
    Development Setup
    Wiki
    Follow Us
    Mailing Lists
    Reddit
    Twitter
    Mastodon
    Facebook
    YouTube

    Copyright © 2006-2025 Beanbag, Inc. All rights reserved.

    Terms of Service — Privacy Policy — AI Ethics Policy — Branding

    On this page

    • [Top]