Jump to >

reviewboard.hostingsvcs.models

class HostingServiceAccount(id, service_name, hosting_url, username, data, visible, local_site_id)[source]

Bases: django.db.models.base.Model

local_site[source]
objects = <reviewboard.hostingsvcs.managers.HostingServiceAccountManager object>[source]
__str__()[source]
service[source]
is_authorized[source]
is_accessible_by(user)[source]

Returns whether or not the user has access to the account.

The account is accessible by the user if the user has access to the local site.

is_mutable_by(user)[source]

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

The acount is mutable by the user if the user is an administrator with proper permissions or the account is part of a LocalSite and the user has permissions to modify it.

accept_certificate(certificate)[source]

Accept the SSL certificate for the linked hosting URL.

Parameters:certificate (reviewboard.scmtools.certs.Certificate) – The certificate to accept.
Raises:ValueError – The certificate data did not include required fields.
__unicode__()[source]
get_data_json()[source]
repositories[source]
set_data_json(json)[source]