Jump to >

reviewboard.hostingsvcs.models

class HostingServiceAccount(id, service_name, hosting_url, username, data, visible, local_site)[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.