Jump to >


class ToolQuerySet(model=None, query=None, using=None)[source]

Bases: django.db.models.query.QuerySet

get(*args, **kwargs)[source]
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.

get_query_set(*args, **kwargs)[source]
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.

accessible_ids(*args, **kwargs)[source]

Return IDs of repositories that are accessible by the given user.

can_create(user, local_site=None)[source]

Encrypts any stored plain-text passwords.