• 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 8.x
    2. Version 8.x
    3. Version 7.x
    4. Version 6.x
    5. Version 5.0
    6. Version 4.0
    7. Version 3.0
    8. Version 2.5
    9. Version 2.0
    10. Version 1.7
    11. Version 1.6
    12. Version 1.5
    13. Version 1.0
    14. Extending Review Board
    15. Module and Class References
    16. reviewboard.actions.base
  • Home
  • Users Guide
  • Getting Started
  • Introduction
  • What is Code Review?
  • Review Board Workflows
  • 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
  • The Review Banner
  • Managing and Publishing Drafts
  • Issue Tracking
  • Reviewing Code (Diffs)
  • Reviewing File Attachments
  • Reviewing Images
  • Reviewing Markdown Files
  • Reviewing Text Files
  • Creating and Editing Reviews
  • Approving Changes (Ship It!)
  • Replying to Comments
  • Automated Code Reviews
  • Searching
  • Quick Search
  • Full-Text Search
  • Using Markdown
  • Administration Guide
  • Installation
  • Installing Review Board
  • Linux System Compatibility
  • Installing with Docker
  • Manually Installing on Linux
  • Installing on macOS
  • Installing on Windows
  • Installing Development Releases
  • Creating a Review Board Site
  • Choosing a Review Board Plan
  • Upgrading
  • Upgrading Review Board
  • Upgrading Review Board Sites
  • Optimization
  • Optimizing and Scaling Review Board
  • Administration UI
  • Overview of the Administration UI
  • Administrator Dashboard
  • Database Management
  • Configuration
  • Site Settings
  • General Settings
  • Authentication Settings
  • Avatar Services Settings
  • E-Mail Settings
  • Review Workflow Settings
  • Diff Viewer Settings
  • Logging Settings
  • SSH Settings
  • File Storage Settings
  • User Privacy Settings
  • Search Settings
  • Document Review Settings
  • Access Control
  • Working with E-Mail
  • Default Reviewers
  • Permission Groups
  • Repositories
  • Azure DevOps Server / Team Foundation Server Repositories
  • Bazaar Repositories
  • CVS Repositories
  • Git Repositories
  • HCL ClearCase and IBM ClearCase
  • Mercurial Repositories
  • Perforce Repositories
  • Review Board Gateway Repositories
  • Subversion Repositories
  • Assembla Repositories
  • AWS CodeCommit Repositories
  • Azure DevOps Services Repositories
  • Beanstalk Repositories
  • Bitbucket Repositories
  • Bitbucket Data Center Repositories
  • Codebase HQ Repositories
  • Fedora Hosted Repositories
  • Forgejo Repositories
  • Gerrit Repositories
  • GitHub Repositories
  • GitHub Enterprise Repositories
  • GitLab Repositories
  • Gitorious Repositories
  • Keysight SOS Repositories
  • SourceForge Repositories
  • Unfuddle STACK Repositories
  • Review Groups
  • Managing SSL/TLS Certificates and CA Bundles
  • User Roles
  • Users
  • WebHooks
  • Extensions
  • Integrations
  • Asana Integration
  • CircleCI Integration
  • Discord Integration
  • GitLab CI/CD Integration
  • I Done This Integration
  • Jenkins CI Integration
  • Matrix Integration
  • Mattermost Integration
  • Microsoft Teams Integration
  • Slack Integration
  • Travis CI Integration
  • Trello Integration
  • Site Maintenance
  • The rb-site Tool
  • Advanced Management Commands
  • Monitoring Review Board
  • Health Checks
  • 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
  • Root Diff Comment List Resource
  • Root File Attachment Comment List Resource
  • Root General Comment List Resource
  • Root Review 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
  • Root Review List Resource
  • Root Diff Comment List Resource
  • Root File Attachment Comment List Resource
  • Root General Comment List 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
  • Root Diff Comment List Resource
  • Root File Attachment Comment List Resource
  • Root General Comment List Resource
  • Root Review List 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
  • Root Review List Resource
  • Root Diff Comment List Resource
  • Root File Attachment Comment List Resource
  • Root General 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 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 and Package Layout
  • Creating an Extension Class
  • Adding a Configuration Form
  • Providing Database Models
  • Providing Static Media Files
  • Writing JavaScript Extensions
  • Writing Extension Unit Tests
  • Packaging and Distributing Extensions
  • Pre-defined URL Names
  • Extension Hooks
  • AccountPageFormsHook
  • AccountPagesHook
  • ActionHook
  • AdminWidgetHook
  • APIExtraDataAccessHook
  • AuthBackendHook
  • AvatarServiceHook
  • CommentDetailDisplayHook
  • DashboardColumnsHook
  • DashboardSidebarItemsHook
  • DataGridColumnsHook
  • EmailHook
  • ReviewRequestPublishedEmailHook
  • ReviewRequestClosedEmailHook
  • ReviewPublishedEmailHook
  • ReviewReplyPublishedEmailHook
  • FileAttachmentThumbnailHook
  • FileDiffACLHook
  • HideActionHook
  • HostingServiceHook
  • IntegrationHook
  • NavigationBarHook
  • ReviewRequestApprovalHook
  • ReviewRequestConditionChoicesHook
  • ReviewRequestFieldsHook
  • ReviewRequestFieldSetsHook
  • ReviewUIHook
  • SCMToolHook
  • SignalHook
  • TemplateHook
  • URLHook
  • UserDetailsProviderHook
  • UserInfoboxHook
  • UserPageSidebarItemsHook
  • WebAPICapabilitiesHook
  • Writing Review Board Extensions
  • Making a Review Board Extension
  • The rbext Tool
  • Extension Hooks
  • AccountPageFormsHook
  • AccountPagesHook
  • ActionHook
  • AdminWidgetHook
  • APIExtraDataAccessHook
  • AuthBackendHook
  • AvatarServiceHook
  • CommentDetailDisplayHook
  • DashboardColumnsHook
  • DashboardSidebarItemsHook
  • DataGridColumnsHook
  • EmailHook
  • ReviewRequestPublishedEmailHook
  • ReviewRequestClosedEmailHook
  • ReviewPublishedEmailHook
  • ReviewReplyPublishedEmailHook
  • FileAttachmentThumbnailHook
  • FileDiffACLHook
  • HideActionHook
  • HostingServiceHook
  • IntegrationHook
  • NavigationBarHook
  • ReviewRequestApprovalHook
  • ReviewRequestConditionChoicesHook
  • ReviewRequestFieldsHook
  • ReviewRequestFieldSetsHook
  • ReviewUIHook
  • SCMToolHook
  • SignalHook
  • TemplateHook
  • URLHook
  • UserDetailsProviderHook
  • UserInfoboxHook
  • UserPageSidebarItemsHook
  • WebAPICapabilitiesHook
  • JavaScript Extension Hooks
  • CommentDialogHook
  • FileAttachmentThumbnailContainerHook
  • ReviewDialogCommentHook
  • ReviewDialogHook
  • Customizing the UI with Actions
  • Customizing the Dashboard Columns
  • Customizing Review Request Conditions
  • Adding Page Banners
  • Adding Review Request Fields
  • Adding UIs for New File Types (Review UIs)
  • Writing Authentication Backends
  • Writing Legacy Authentication Backends
  • Extending the Web API
  • Module and Class References
  • reviewboard
  • reviewboard.deprecation
  • reviewboard.rb_platform
  • reviewboard.signals
  • reviewboard.urls
  • 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.forms.auth
  • reviewboard.accounts.forms.pages
  • reviewboard.accounts.forms.registration
  • reviewboard.accounts.managers
  • reviewboard.accounts.middleware
  • reviewboard.accounts.mixins
  • reviewboard.accounts.models
  • reviewboard.accounts.pages
  • reviewboard.accounts.privacy
  • reviewboard.accounts.templatetags.accounts
  • reviewboard.accounts.testing
  • reviewboard.accounts.testing.queries
  • reviewboard.accounts.trophies
  • reviewboard.accounts.user_details
  • reviewboard.actions
  • reviewboard.actions.base
  • reviewboard.actions.errors
  • reviewboard.actions.registry
  • reviewboard.actions.renderers
  • reviewboard.admin
  • reviewboard.admin.actions
  • 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.errors
  • 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.certs
  • reviewboard.certs.cert
  • reviewboard.certs.errors
  • reviewboard.certs.utils
  • reviewboard.extensions.base
  • reviewboard.extensions.hooks
  • reviewboard.extensions.packaging
  • reviewboard.extensions.packaging.backend
  • reviewboard.extensions.packaging.setuptools_backend
  • reviewboard.extensions.packaging.static_media
  • reviewboard.extensions.testing
  • reviewboard.extensions.testing.testcases
  • reviewboard.hostingsvcs.base
  • reviewboard.hostingsvcs.base.bug_tracker
  • reviewboard.hostingsvcs.base.client
  • reviewboard.hostingsvcs.base.forms
  • reviewboard.hostingsvcs.base.hosting_service
  • reviewboard.hostingsvcs.base.http
  • reviewboard.hostingsvcs.base.paginator
  • reviewboard.hostingsvcs.base.registry
  • reviewboard.hostingsvcs.base.repository
  • 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.licensing
  • reviewboard.licensing.actions
  • reviewboard.licensing.errors
  • reviewboard.licensing.features
  • reviewboard.licensing.license
  • reviewboard.licensing.license_checks
  • reviewboard.licensing.provider
  • reviewboard.licensing.registry
  • reviewboard.licensing.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.testing
  • reviewboard.reviews.testing.queries
  • reviewboard.reviews.testing.queries.review_groups
  • reviewboard.reviews.testing.queries.review_requests
  • reviewboard.reviews.testing.queries.reviews
  • reviewboard.reviews.ui.base
  • reviewboard.reviews.ui.image
  • reviewboard.reviews.ui.markdownui
  • reviewboard.reviews.ui.text
  • reviewboard.reviews.views.attachments
  • reviewboard.reviews.views.bug_trackers
  • reviewboard.reviews.views.diff_fragments
  • reviewboard.reviews.views.diffviewer
  • reviewboard.reviews.views.download_diff
  • reviewboard.reviews.views.email
  • reviewboard.reviews.views.mixins
  • reviewboard.reviews.views.new_review_request
  • reviewboard.reviews.views.review_request_detail
  • reviewboard.reviews.views.review_request_infobox
  • reviewboard.reviews.views.review_request_updates
  • reviewboard.reviews.views.root
  • 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.testing
  • reviewboard.scmtools.testing.queries
  • 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.testing
  • reviewboard.site.testing.queries
  • 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.queries
  • reviewboard.testing.queries.base
  • reviewboard.testing.queries.http
  • reviewboard.testing.scmtool
  • reviewboard.testing.testcase
  • reviewboard.themes
  • reviewboard.themes.context_processors
  • reviewboard.themes.ui
  • reviewboard.themes.ui.base
  • reviewboard.themes.ui.default
  • reviewboard.themes.ui.registry
  • 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.testing
  • reviewboard.webapi.testing.queries
  • reviewboard.webapi.tests.base
  • Frequently Asked Questions
  • General Index
  • Python Module Index
  • Release Notes
  • reviewboard.actions.base¶

    Base classes for actions.

    New in version 6.0.

    class AttachmentPoint[source]¶

    Bases: object

    Attachment points for actions.

    New in version 6.0.

    NON_UI = 'non-ui'[source]¶

    Attachment for actions which do not want to render in the UI.

    This can be used for actions which want to be JavaScript-only, and may be used in the future for things like keyboard shortcuts or a command-K bar.

    ADMIN_NAV = 'admin-nav'[source]¶

    Administration navigation.

    New in version 8.0.

    HEADER = 'header'[source]¶

    Attachment for actions in the page header.

    REVIEW_REQUEST_LEFT = 'review-request-left'[source]¶

    Attachment for actions on the left side of the review request header.

    REVIEW_REQUEST = 'review-request'[source]¶

    Attachment for actions on the right side of the review request header.

    UNIFIED_BANNER = 'unified-banner'[source]¶

    Attachment for actions in the unified draft banner.

    QUICK_ACCESS = 'quick-access'[source]¶

    Attachment for actions in the quick access area.

    New in version 8.0.

    class ActionAttachmentPoint(attachment_point_id: str | None = None, *, actions: Sequence[str] | None = None, actions_registry: ActionsRegistry | None = None, default_action_group_renderer_cls: type[BaseActionGroupRenderer] | None = None, default_action_renderer_cls: type[BaseActionRenderer] | None = None)[source]¶

    Bases: object

    An attachment point for a list of actions.

    Attachment points manage the display and registration of the UI side of actions. They may contain any number of pre-defined actions, and will automatically contain any actions dynamically registered to the attachment point.

    Actions rendered in an attachment point will use their own default renderer if specified, and fall back to the attachment point’s default renderer. This order ensures that an attachment point may, for instance, default to buttons but that a menu button can still be added and rendered correctly.

    An attachment point can be registered in a central registry so that it can be referred to by name. It may also be unregistered and passed directly to any templates that want to render the actions.

    To include an attachment point on a page, use the {% actions_html %} template tag.

    New in version 8.0.

    __init__(attachment_point_id: str | None = None, *, actions: Sequence[str] | None = None, actions_registry: ActionsRegistry | None = None, default_action_group_renderer_cls: type[BaseActionGroupRenderer] | None = None, default_action_renderer_cls: type[BaseActionRenderer] | None = None) → None[source]¶

    Initialize the attachment point.

    Parameters:
    • attachment_point_id (str, optional) –

      The unique ID for this attachment point.

      This must be provided if attachment_point_id is not already set.

    • actions (list of str, optional) –

      An explicit list of action IDs to include in this attachment point.

      Any actions listed here will be listed first in the specified order. Any additional actions registered to this attachment point will be added after these actions.

    • actions_registry (reviewboard.actions.registry.ActionsRegistry, optional) –

      The registry managing actions for this attachment point.

      This is primarily for unit test purposes.

    • default_action_group_renderer_cls (type, optional) –

      The default action renderer used for child action groups.

      This will be used for any actions that don’t already have a default action renderer set. The action’s default takes precedence in order to allow actions such as menus to manage their own display.

    • default_action_renderer_cls (type, optional) –

      The default action renderer used for child actions.

      This will be used for any actions that don’t already have a default action renderer set. The action’s default takes precedence in order to allow actions such as buttons to manage their own display.

    attachment_point_id: str¶

    The unique ID for this attachment point.

    This may be set on the class or passed when initializing an instance.

    actions: Sequence[str] | None = None¶

    A pre-defined list of action IDs to include on the attachment point.

    This may be set on the class or passed when initializing an instance.

    Any actions listed here will be listed first in the specified order. Any additional actions registered to this attachment point will be added after these actions.

    default_action_renderer_cls¶

    The default action renderer used for child actions.

    This may be set on the class or passed when initializing an instance.

    This will be used for any non-group actions that don’t already have a default action renderer set. The action’s default takes precedence in order to allow actions such as buttons to manage their own display.

    alias of DefaultActionRenderer

    default_action_group_renderer_cls¶

    The default action renderer used for child action groups.

    This may be set on the class or passed when initializing an instance.

    This will be used for any group actions that don’t already have a default action renderer set. The action’s default takes precedence in order to allow actions such as menus to manage their own display.

    alias of DefaultActionGroupRenderer

    actions_registry: ActionsRegistry¶

    The registry managing actions for this attachment point.

    This is primarily for unit test purposes.

    iter_actions(*, include_children: bool = False) → Iterator[BaseAction][source]¶

    Yield actions for this attachment point.

    Parameters:

    include_children (bool, optional) –

    Whether to also include children of menus.

    If False (default), this will only yield the top-level items.

    Yields:

    reviewboard.actions.base.BaseAction – The actions for the given attachment point.

    get_js_view_data(*, context: Context) → SerializableDjangoJSONDict[source]¶

    Return additional data to be passed to the JavaScript view.

    This will be merged along with the data provided by the renderer. Any data in the renderer will take precedence over data returned by this method.

    Parameters:

    context (django.template.Context) – The current rendering context.

    Returns:

    A dictionary of attributes to pass to the model instance.

    Return type:

    dict

    render(*, request: HttpRequest, context: Context) → SafeString[source]¶

    Render all actions in the attachment point.

    Parameters:
    • request (django.http.HttpRequest) – The HTTP request from the client.

    • context (django.template.Context) – The current rendering context.

    Returns:

    The rendered action HTML.

    Return type:

    django.utils.safestring.SafeString

    render_js(*, request: HttpRequest, context: Context) → SafeString[source]¶

    Render the JavaScript for loading each action view in this point.

    Parameters:
    • request (django.http.HttpRequest) – The HTTP request from the client.

    • context (django.template.Context) – The current rendering context.

    Returns:

    The rendered action JavaScript.

    Return type:

    django.utils.safestring.SafeString

    class ActionPlacement(attachment: str, *, default_renderer_cls: type[reviewboard.actions.renderers.BaseActionRenderer] | None = None, dom_element_id: str | None = None, parent_id: str | None = None)[source]¶

    Bases: object

    Placement information for an action.

    This is used to specify where and how an action may be placed. This is mapped to a key specifying an attachment point ID, and can specify the parent action within the attachment point and a default renderer to use.

    New in version 8.0.

    __init__(attachment: str, *, default_renderer_cls: type[reviewboard.actions.renderers.BaseActionRenderer] | None = None, dom_element_id: str | None = None, parent_id: str | None = None) → None[source]¶

    Initialize the placement.

    Parameters:
    • attachment (str) – The attachment point ID to place the action in.

    • default_renderer_cls (type, optional) – The default renderer to use when rendering in this attachment point.

    • dom_element_id (str, optional) – A custom DOM element ID for the action in this attachment point.

    • parent_id (str, optional) – The parent ID of an action in this attachment point in which to place this action.

    attachment: str¶

    The attachment point for the action.

    default_renderer_cls: type[BaseActionRenderer] | None¶

    The default renderer used for this action.

    By default, actions inherit their default renderer from a previous group or attachment point.

    Default renderers can always be overridden when rendering the action.

    dom_element_id: str | None = None¶

    The DOM element ID for this element on the page.

    If not provided, an ID in the form of action-attachment-action_id will be used.

    parent_id: str | None¶

    The ID of the parent action within the attachment point, if needed.

    This is used to build menus or groups of actions in part of the UI.

    child_actions: list[BaseAction]¶

    The list of child actions, if this is a grouped action.

    parent_action: BaseGroupAction | None¶

    The parent of this action, if this is an item in a group.

    property depth: int[source]¶

    The depth of the action in this placement.

    Type:

    int

    clone() → ActionPlacement[source]¶

    Return a clone of action placement.

    This is used to produce a copy of a central action that can be attached to an action instance, to avoid sharing of state.

    Returns:

    The cloned instance.

    Return type:

    ActionPlacement

    __final__ = True¶
    class BaseAction[source]¶

    Bases: object

    Base class for actions.

    Changed in version 8.0:

    • A single action now can be placed in multiple attachment points via placements.

    • Actions now make use of renderer classes for rendering, instead of including rendering logic built-in.

    • Deprecated the attributes attachment, js_view_class, parent_action, parent_id, and template_name.

    • Deprecated the methods get_js_view_data() and is_custom_rendered().

    New in version 6.0.

    action_id: str¶

    The internal ID of the action.

    This must be unique.

    Type:

    str

    apply_to: Optional[List[str]] = None¶

    A list of URLs to apply to.

    If this is None, the action will be loaded on all pages. Otherwise, it will be limited to the URLs listed here.

    Type:

    list of str

    attachment: str | None = None¶

    The attachment point for the action.

    Deprecated since version 8.0: This has been replaced by placements. This option will be removed in Review Board 9.

    default_renderer_cls: type[BaseActionRenderer] | None = None¶

    The default renderer used for this action.

    By default, actions inherit their default renderer from a previous group or attachment point.

    Default renderers can always be overridden when rendering the action.

    New in version 8.0.

    description: Sequence[StrOrPromise] | None = None¶

    An optional description for your action.

    If provided, this must be a list of strings, each used as a paragraph. Each must be plain text, and will be escaped for display.

    When rendered as a button, this will be used for the button’s tooltip.

    When rendered as a detailed menu item (which is used in the Review menu), this will be shown as additional text below the label.

    Other renderers may use this for other purposes.

    New in version 8.0.

    icon_class: Optional[str] = None¶

    A class name to use for an icon.

    If specified, this should be the entire class to apply to a <span> element to display an icon. For example, ‘fa fa-rss’.

    Type:

    str

    js_model_class: str = 'RB.Actions.Action'¶

    The class to instantiate for the JavaScript model.

    Type:

    str

    js_template_name: str = 'actions/action.js'¶

    The name of the template to use for registering action model JavaScript.

    js_view_class: str | None = None¶

    The class to instantiate for the JavaScript view.

    Deprecated since version 8.0: This should be set on the action’s renderer instead.

    label: StrOrPromise | None = None¶

    The user-visible label.

    Type:

    str

    parent_id: str | None = None¶

    The IDs of any parent actions, if needed.

    Deprecated since version 8.0: This should be set in placements instead. This option will be removed in Review Board 9.

    template_name: str | None = None¶

    The name of the template to use when rendering.

    Deprecated since version 8.0: This should be set on the action’s renderer instead. This option will be removed in Review Board 9.

    url: str = '#'¶

    The URL that this action links to.

    Type:

    str

    url_name: Optional[str] = None¶

    A URL name to resolve.

    If this is not None, it will take precedence over url.

    Type:

    str

    verbose_label: StrOrPromise | None = None¶

    The user-visible verbose label.

    This can be used to provide a longer label for wider UIs that would benefit from a more descriptive label. It’s also intended for ARIA labels.

    This is always optional.

    New in version 8.0.

    visible: bool = True¶

    Whether this action is visible.

    Type:

    bool

    __init__() → None[source]¶

    Initialize the action.

    parent_registry: ActionsRegistry | None¶

    The parent registry managing this action.

    New in version 8.0.

    placements: Sequence[ActionPlacement] | None = None¶

    The placements of this action within the page.

    Each entry defines a placement within an attachment point and an action parent/child hierarchy where action should be rendered, along with options controlling the rendering.

    New in version 8.0.

    property parent_action: reviewboard.actions.base.BaseAction | None[source]¶

    The parent of this action, if this is an item in a group.

    Deprecated since version 8.0: This has been replaced by ActionPlacement.parent_action. It will be removed in Review Board 10.

    property child_actions: Sequence[BaseAction][source]¶

    The children of this action, if this is a group.

    Deprecated since version 8.0: This has been replaced by ActionPlacement.child_actions. It will be removed in Review Board 10.

    property depth: int[source]¶

    The depth of the action.

    Deprecated since version 8.0: This is scheduled for removal in Review Board 10. This has been replaced by ActionPlacement.depth.

    Type:

    int

    get_placement(attachment_point_id: str) → ActionPlacement[source]¶

    Return the Placement for the action matching the attachment point.

    New in version 8.0.

    Parameters:

    attachment_point_id (str) – The ID of the attachment point matching the placement.

    Returns:

    The Placement, or None if not found.

    Return type:

    ActionPlacement

    Raises:

    KeyError – The attachment point ID is not a valid placement for this action.

    get_renderer_cls(*, placement: reviewboard.actions.base.ActionPlacement | None, preferred_renderer_cls: type[reviewboard.actions.renderers.BaseActionRenderer] | None = None, fallback_renderer_cls: type[reviewboard.actions.renderers.BaseActionRenderer] | None = None) → type[reviewboard.actions.renderers.BaseActionRenderer] | None[source]¶

    Return the renderer class used to render this action.

    This takes into account the attachment point, the preferred renderer from the caller, and the fallback if no suitable renderer is found.

    New in version 8.0.

    Parameters:
    • placement (ActionPlacement) – The placement where the action will be rendered.

    • preferred_renderer_cls (type, optional) –

      The preferred renderer for items.

      This will be used if provided, unless item isn’t custom-rendered (a deprecated feature).

    • fallback_renderer_cls (type, optional) – The fallback renderer if the placement or action does not provide one.

    Returns:

    The renderer class, or None if one could not be determined.

    Return type:

    type

    is_custom_rendered() → bool[source]¶

    Whether this action uses custom rendering.

    By default, this will return True if a custom template name is used. If the JavaScript side needs to override rendering, the subclass should explicitly return True.

    Deprecated since version 8.0: This is scheduled for removal in Review Board 9. This was only ever used for menu items. Custom menu items should instead set the data-custom-rendered="true" attribute on the custom element.

    New in version 7.0.

    Returns:

    True if this action uses custom rendering. False if it does not.

    Return type:

    bool

    should_register(*, context: Context, request: HttpRequest) → bool[source]¶

    Return whether this action should be registered.

    By default, an action will be registered only if it’s rendered somewhere on the page (which will itself depend in part on the result of should_render()).

    Subclasses can override this to register even if not rendered, which may be useful for actions that are entirely managed dynamically in JavaScript. When overriding, it’s recommended to call should_render() in order to avoid registering an action that is not applicable to a page or is hidden by a hook.

    New in version 8.0.

    Parameters:
    • context (django.template.Context) – The current rendering context.

    • request (django.http.HttpRequest) – The HTTP request from the client.

    Returns:

    True if the action should be registered. False if it should not.

    Return type:

    bool

    should_render(*, context: Context) → bool[source]¶

    Return whether this action should render.

    This differs from visible in that non-visible actions still render but are hidden by CSS, whereas if this returns False the action will not be included in the DOM at all.

    Parameters:

    context (django.template.Context) – The current rendering context.

    Returns:

    True if the action should render.

    Return type:

    bool

    get_dom_element_id() → str[source]¶

    Return the ID used for the DOM element for this action.

    Deprecated since version 8.0: This is scheduled for removal in Review Board 9. This has been replaced by ActionPlacement.dom_element_id.

    Returns:

    The ID used for the element.

    Return type:

    str

    get_js_model_data(*, context: Context) → SerializableDjangoJSONDict[source]¶

    Return data to be passed to the JavaScript model.

    Parameters:

    context (django.template.Context) – The current rendering context.

    Returns:

    A dictionary of attributes to pass to the model instance.

    Return type:

    dict

    get_js_view_data(*, context: Context) → SerializableDjangoJSONDict[source]¶

    Return data to be passed to the JavaScript view.

    Deprecated since version 8.0: Actions implementing this should instead move to custom renderers.

    Parameters:

    context (django.template.Context) – The current rendering context.

    Returns:

    A dictionary of options to pass to the view instance.

    Return type:

    dict

    get_label(*, context: Context) → StrOrPromise | None[source]¶

    Return the label for the action.

    Parameters:

    context (django.template.Context) – The current rendering context.

    Returns:

    The label to use for the action.

    Return type:

    str

    get_verbose_label(*, context: Context) → StrOrPromise | None[source]¶

    Return the verbose label for the action.

    This can be used to provide a longer label for wider UIs that would benefit from a more descriptive label. It’s always optional.

    Version Added:

    8.0

    Parameters:

    context (django.template.Context) – The current rendering context.

    Returns:

    The verbose label to use for the action.

    Return type:

    str

    get_url(*, context: Context) → str[source]¶

    Return the URL for the action.

    Parameters:

    context (django.template.Context) – The current rendering context.

    Returns:

    The URL to use for the action.

    Return type:

    str

    get_visible(*, context: Context) → bool[source]¶

    Return whether the action should start visible.

    Parameters:

    context (django.template.Context) – The current rendering context.

    Returns:

    True if the action should start visible. False, otherwise.

    Return type:

    bool

    get_extra_context(*, request: HttpRequest, context: Context) → dict[str, Any][source]¶

    Return extra template context for the action.

    Subclasses can override this to provide additional context needed by the template for the action. By default, this returns an empty dictionary.

    Parameters:
    • request (django.http.HttpRequest) – The HTTP request from the client.

    • context (django.template.Context) – The current rendering context.

    Returns:

    Extra context to use when rendering the action’s template.

    Return type:

    dict

    render(*, request: HttpRequest, context: Context, placement: ActionPlacement | None = None, renderer: type[BaseActionRenderer] | None = None, fallback_renderer: type[BaseActionRenderer] | None = None) → SafeString[source]¶

    Render the action.

    Changed in version 8.0: Added the extra_js_view_data, fallback_renderer, placement, and renderer arguments.

    Parameters:
    • request (django.http.HttpRequest) – The HTTP request from the client.

    • context (django.template.Context) – The current rendering context.

    • placement (ActionPlacement, optional) –

      The placement the action is being rendered into.

      If not added, the first will be used, with a warning.

      This argument will be required in Review Boad 9.

      New in version 8.0.

    • renderer (type, optional) –

      The renderer used to render this action.

      If not specified, default_renderer_cls will be used.

      New in version 8.0.

    • fallback_renderer (type, optional) –

      The renderer used to render this action if no other is found.

      New in version 8.0.

    Returns:

    The rendered action HTML.

    Return type:

    django.utils.safestring.SafeString

    Raises:
    • TypeError – An invalid renderer class was provided.

    • reviewboard.actions.errors.MissingActionRendererError – A renderer was not found or provided.

    render_model_js(*, request: HttpRequest, context: Context) → SafeString[source]¶

    Render the action’s JavaScript model.

    This will set up the JavaScript model, registering it for use in views.

    New in version 8.0.

    Parameters:
    • request (django.http.HttpRequest) – The HTTP request from the client.

    • context (django.template.Context) – The current rendering context.

    Returns:

    The rendered action JavaScript.

    Return type:

    django.utils.safestring.SafeString

    render_js(*, request: HttpRequest, context: Context, extra_js_view_data: SerializableDjangoJSONDict | None = None, placement: ActionPlacement | None = None, renderer: type[BaseActionRenderer] | None = None, fallback_renderer: type[BaseActionRenderer] | None = None) → SafeString[source]¶

    Render the action’s JavaScript view.

    This will set up an instance of an action’s view using either the provided renderer or the action’s default renderer.

    Changed in version 8.0: Added the extra_js_view_data, fallback_renderer, placement, and renderer arguments.

    Parameters:
    • request (django.http.HttpRequest) – The HTTP request from the client.

    • context (django.template.Context) – The current rendering context.

    • extra_js_view_data (dict, optional) –

      Optional extra data to pass to the JavaScript action view’s constructor.

      New in version 8.0.

    • placement (ActionPlacement, optional) –

      The placement the action is being rendered into.

      If not added, the first will be used, with a warning.

      This argument will be required in Review Boad 9.

      New in version 8.0.

    • renderer (type, optional) –

      The renderer used to render this action.

      If not specified, default_renderer_cls will be used.

      New in version 8.0.

    • fallback_renderer (type, optional) –

      The renderer used to render this action if no other is found.

      New in version 8.0.

    Returns:

    The rendered action JavaScript.

    Return type:

    django.utils.safestring.SafeString

    Raises:
    • TypeError – An invalid renderer class was provided.

    • reviewboard.actions.errors.MissingActionRendererError – A renderer was not found or provided.

    class BaseGroupAction[source]¶

    Bases: BaseAction

    Base class for a group of actions.

    This can be used to group together actions in some form. Subclasses can implement this as menus, lists of actions, or in other presentational styles.

    New in version 8.0.

    js_model_class: str = 'RB.Actions.GroupAction'[source]¶

    The class to instantiate for the JavaScript model.

    Type:

    str

    children: Sequence[str] = []¶

    An ordered list of child action IDs.

    This can be used to specify a specific order for children to appear in. The special string ‘–’ can be used to add separators. Any children that are registered with this group as their parent but do not appear in this list will be added at the end of the group.

    get_js_model_data(*, context: Context) → SerializableDjangoJSONDict[source]¶

    Return data to be passed to the JavaScript model.

    Parameters:

    context (django.template.Context) – The current rendering context.

    Returns:

    A dictionary of attributes to pass to the model instance.

    Return type:

    dict

    Raises:

    reviewboard.actions.errors.ActionError – There was an error retrieving data for the action. Details will be in the error message.

    class BaseMenuAction[source]¶

    Bases: BaseGroupAction

    Base class for menu actions.

    New in version 6.0.

    default_renderer_cls¶

    alias of MenuActionGroupRenderer

    js_model_class: str = 'RB.Actions.MenuAction'[source]¶

    The class to instantiate for the JavaScript model.

    Type:

    str

    is_custom_rendered() → bool[source]¶

    Whether this menu action uses custom rendering.

    By default, this will return True if a custom template name is used. If the JavaScript side needs to override rendering, the subclass should explicitly return True.

    Deprecated since version 8.0: This is scheduled for removal in Review Board 10. This was only ever used for menu items. Custom menu items should instead set the data-custom-rendered="true" attribute on the custom element.

    New in version 7.0.

    Returns:

    True if this action uses custom rendering. False if it does not.

    Return type:

    bool

    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-2026 Beanbag, Inc. All rights reserved.
    Terms of Service — Privacy Policy — AI Ethics Policy — Branding

    On this page

    • [Top]
    • AttachmentPoint
      • AttachmentPoint.NON_UI
      • AttachmentPoint.ADMIN_NAV
      • AttachmentPoint.HEADER
      • AttachmentPoint.REVIEW_REQUEST_LEFT
      • AttachmentPoint.REVIEW_REQUEST
      • AttachmentPoint.UNIFIED_BANNER
      • AttachmentPoint.QUICK_ACCESS
    • ActionAttachmentPoint
      • ActionAttachmentPoint.__init__()
      • ActionAttachmentPoint.attachment_point_id
      • ActionAttachmentPoint.actions
      • ActionAttachmentPoint.default_action_renderer_cls
      • ActionAttachmentPoint.default_action_group_renderer_cls
      • ActionAttachmentPoint.actions_registry
      • ActionAttachmentPoint.iter_actions()
      • ActionAttachmentPoint.get_js_view_data()
      • ActionAttachmentPoint.render()
      • ActionAttachmentPoint.render_js()
    • ActionPlacement
      • ActionPlacement.__init__()
      • ActionPlacement.attachment
      • ActionPlacement.default_renderer_cls
      • ActionPlacement.dom_element_id
      • ActionPlacement.parent_id
      • ActionPlacement.child_actions
      • ActionPlacement.parent_action
      • ActionPlacement.depth
      • ActionPlacement.clone()
      • ActionPlacement.__final__
    • BaseAction
      • BaseAction.action_id
      • BaseAction.apply_to
      • BaseAction.attachment
      • BaseAction.default_renderer_cls
      • BaseAction.description
      • BaseAction.icon_class
      • BaseAction.js_model_class
      • BaseAction.js_template_name
      • BaseAction.js_view_class
      • BaseAction.label
      • BaseAction.parent_id
      • BaseAction.template_name
      • BaseAction.url
      • BaseAction.url_name
      • BaseAction.verbose_label
      • BaseAction.visible
      • BaseAction.__init__()
      • BaseAction.parent_registry
      • BaseAction.placements
      • BaseAction.parent_action
      • BaseAction.child_actions
      • BaseAction.depth
      • BaseAction.get_placement()
      • BaseAction.get_renderer_cls()
      • BaseAction.is_custom_rendered()
      • BaseAction.should_register()
      • BaseAction.should_render()
      • BaseAction.get_dom_element_id()
      • BaseAction.get_js_model_data()
      • BaseAction.get_js_view_data()
      • BaseAction.get_label()
      • BaseAction.get_verbose_label()
      • BaseAction.get_url()
      • BaseAction.get_visible()
      • BaseAction.get_extra_context()
      • BaseAction.render()
      • BaseAction.render_model_js()
      • BaseAction.render_js()
    • BaseGroupAction
      • BaseGroupAction.js_model_class
      • BaseGroupAction.children
      • BaseGroupAction.get_js_model_data()
    • BaseMenuAction
      • BaseMenuAction.default_renderer_cls
      • BaseMenuAction.js_model_class
      • BaseMenuAction.is_custom_rendered()