reviewboard.scmtools.managers¶
-
class
ToolManager
[source]¶ Bases:
django.db.models.manager.Manager
Manages Tool models.
Any get() operations performed (directly or indirectly through a ForeignKey) will go through a cache to attempt to minimize Tool lookups.
The Tool cache is never cleared, but as Tool objects should never be modified by hand (they’re registered when doing an rb-site upgrade, and then the server process must be reloaded), this shouldn’t be a problem.
-
class
RepositoryManager
[source]¶ Bases:
django.db.models.manager.Manager
A manager for Repository models.
-
accessible
(user, visible_only=True, local_site=None)[source]¶ Returns repositories that are accessible by the given user.
-