Module ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier alias alias ImportFrom alias identifier ImportFrom alias ImportFrom alias alias alias Import alias identifier ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Dict Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Dict vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Dict Dict NameLoad Dict vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Str If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Dict Str kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Dict NameLoad NameLoad Str body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str For NameStore NameLoad body AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Str AugAssignAdd NameStore BinOpAdd Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Str For NameStore NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Str AugAssignAdd NameStore BinOpAdd NameLoad Str AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore Str Assign NameStore BinOpMod Str NameLoad Return TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore Dict Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assert NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad vararg kwarg body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults vararg kwarg body If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults vararg kwarg body If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad Call NameLoad NameLoad Index Num Assign NameStore Dict Assert CompareIn NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad body TryExcept body Assign SubscriptStore NameLoad Index NameLoad BinOpMod NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword Num Raise Call NameLoad BinOpMod Call NameLoad Str Dict Str Str NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Return CompareIn Str Call AttributeLoad NameLoad attr NameLoad Str Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If UnaryOpNot NameLoad body Return Str TryExcept body Return BinOpMod NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Raise Call NameLoad BinOpMod Call NameLoad Str Dict Str Str NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If AttributeLoad NameLoad attr body Assert NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If BoolOpAnd CompareEq NameLoad NameLoad CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list Assign NameStore Dict Assign NameStore Dict Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Assign NameStore Dict NameLoad NameLoad NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str Call NameLoad BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Raise NameLoad decorator_list FunctionDef arguments args defaults kwarg body Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad keyword Str
N/A __future__ unicode_literals N/A base64 N/A json N/A logging N/A mimetools django.conf.urls include patterns url django.dispatch receiver django.utils six django.utils.six.moves.urllib.parse urlparse django.utils.six.moves.urllib.request Request BaseURLRequest HTTPBasicAuthHandler urlopen django.utils.translation ugettext_lazy _ djblets.registries.errors ItemLookupError djblets.registries.registry ALREADY_REGISTERED LOAD_ENTRY_POINT NOT_REGISTERED N/A reviewboard.hostingsvcs.urls hostingsvcs_urls reviewboard.registries.registry EntryPointRegistry reviewboard.signals initializing URLRequest N/A BaseURLRequest N/A __init__ N/A N/A self url body headers method N/A N/A GET N/A N/A N/A N/A BaseURLRequest __init__ self url body headers N/A N/A self method method N/A get_method N/A N/A self N/A N/A N/A N/A self method N/A N/A HostingServiceClient N/A object N/A N/A Client for communicating with a hosting service's API.

    This implementation includes abstractions for performing HTTP operations,
    and wrappers for those to interpret responses as JSON data.

    HostingService subclasses can also include an override of this class to add
    additional checking (such as GitHub's checking of rate limit headers), or
    add higher-level API functionality.
     __init__ N/A N/A self hosting_service N/A N/A N/A N/A http_delete N/A N/A self url headers N/A N/A args kwargs N/A N/A Perform an HTTP DELETE on the given URL. N/A N/A N/A self http_request url headers headers method DELETE kwargs N/A http_get N/A N/A self url N/A args kwargs N/A N/A Perform an HTTP GET on the given URL. N/A N/A N/A self http_request url method GET kwargs N/A http_post N/A N/A self url body fields files content_type headers N/A None N/A N/A None N/A args kwargs N/A N/A Perform an HTTP POST on the given URL. N/A headers N/A N/A headers copy N/A N/A body None N/A N/A N/A fields None N/A N/A N/A body content_type N/A N/A self _build_form_data fields files N/A N/A body N/A content_type N/A N/A N/A headers N/A Content-Type content_type N/A N/A headers N/A Content-Length N/A %d N/A len body N/A N/A N/A self http_request url body body headers headers method POST kwargs N/A http_request N/A N/A self url body headers method N/A None N/A GET kwargs N/A N/A Perform some HTTP operation on a given URL. N/A r N/A N/A self _build_request url body headers method method kwargs N/A u N/A urlopen r N/A N/A N/A N/A u read N/A u headers N/A json_delete N/A N/A self N/A args kwargs N/A N/A Perform an HTTP DELETE and interpret the results as JSON. N/A N/A N/A self _do_json_method N/A self http_delete args kwargs N/A json_get N/A N/A self N/A args kwargs N/A N/A Perform an HTTP GET and interpret the results as JSON. N/A N/A N/A self _do_json_method N/A self http_get args kwargs N/A json_post N/A N/A self N/A args kwargs N/A N/A Perform an HTTP POST and interpret the results as JSON. N/A N/A N/A self _do_json_method N/A self http_post args kwargs N/A _do_json_method N/A N/A self method N/A args kwargs N/A N/A Internal helper for JSON operations. N/A N/A data headers N/A method args kwargs N/A data N/A N/A data N/A N/A json loads data N/A N/A data headers N/A _build_request N/A N/A self url body headers username password method N/A None N/A None None GET N/A N/A Build a URLRequest object, including HTTP Basic auth N/A r N/A URLRequest url body headers method method N/A N/A N/A username None N/A password None N/A N/A auth_key N/A N/A username : password N/A N/A N/A r add_header N/A HTTPBasicAuthHandler auth_header N/A Basic %s N/A N/A base64 b64encode N/A N/A auth_key encode utf-8 N/A r N/A _build_form_data N/A N/A self fields files N/A N/A N/A Encodes data for use in an HTTP POST. N/A BOUNDARY N/A N/A mimetools choose_boundary N/A content N/A key fields N/A N/A content N/A N/A -- BOUNDARY N/A content N/A Content-Disposition: form-data; name="%s"
 key N/A content N/A content N/A N/A N/A six text_type N/A fields N/A key N/A key files N/A N/A filename N/A N/A files N/A key N/A filename N/A value N/A N/A files N/A key N/A content N/A content N/A N/A -- BOUNDARY N/A content N/A Content-Disposition: form-data; name="%s";  key N/A content N/A filename="%s"
 filename N/A content N/A content N/A value N/A content N/A N/A -- BOUNDARY --
 N/A content N/A content_type N/A multipart/form-data; boundary=%s BOUNDARY N/A N/A content content_type N/A N/A HostingService N/A object N/A N/A An interface to a hosting service for repositories and bug trackers.

    HostingService subclasses are used to more easily configure repositories
    and to make use of third party APIs to perform special operations not
    otherwise usable by generic repositories.

    A HostingService can specify forms for repository and bug tracker
    configuration.

    It can also provide a list of repository "plans" (such as public
    repositories, private repositories, or other types available to the hosting
    service), along with configuration specific to the plan. These plans will
    be available when configuring the repository.
     N/A name None N/A plans None N/A supports_bug_trackers False N/A supports_post_commit False N/A supports_repositories False N/A supports_ssh_key_association False N/A supports_two_factor_auth False N/A supports_list_remote_repositories False N/A has_repository_hook_instructions False N/A self_hosted False N/A repository_url_patterns None N/A client_class HostingServiceClient N/A needs_authorization False N/A supported_scmtools N/A N/A form None N/A fields N/A N/A repository_fields N/A N/A bug_tracker_field None __init__ N/A N/A self account N/A N/A N/A account N/A N/A self account account N/A N/A self client N/A N/A self client_class self N/A is_authorized N/A N/A self N/A N/A N/A Returns whether or not the account is currently authorized.

        An account may no longer be authorized if the hosting service
        switches to a new API that doesn't match the current authorization
        records. This function will determine whether the account is still
        considered authorized.
         N/A False N/A get_password N/A N/A self N/A N/A N/A Returns the raw password for this hosting service.

        Not all hosting services provide this, and not all would need it.
        It's primarily used when building a Subversion client, or other
        SCMTools that still need direct access to the repository itself.
         N/A None N/A is_ssh_key_associated N/A N/A self repository key N/A N/A N/A Returns whether or not the key is associated with the repository.

        If the ``key`` (an instance of :py:mod:`paramiko.PKey`) is present
        among the hosting service's deploy keys for a given ``repository`` or
        account, then it is considered associated. If there is a problem
        checking with the hosting service, an :py:exc:`SSHKeyAssociationError`
        will be raised.
         N/A NotImplementedError N/A associate_ssh_key N/A N/A self repository key N/A N/A N/A Associates an SSH key with a given repository

        The ``key`` (an instance of :py:mod:`paramiko.PKey`) will be added to
        the hosting service's list of deploy keys (if possible). If there
        is a problem uploading the key to the hosting service, a
        :py:exc:`SSHKeyAssociationError` will be raised.
         N/A NotImplementedError N/A authorize N/A N/A self username password hosting_url local_site_name N/A None args kwargs N/A N/A NotImplementedError N/A check_repository N/A N/A self path username password scmtool_class local_site_name N/A args kwargs N/A N/A Checks the validity of a repository configuration.

        This performs a check against the hosting service or repository
        to ensure that the information provided by the user represents
        a valid repository.

        This is passed in the repository details, such as the path and
        raw credentials, as well as the SCMTool class being used, the
        LocalSite's name (if any), and all field data from the
        HostingServiceForm as keyword arguments.
         N/A N/A N/A scmtool_class check_repository path username password local_site_name N/A get_file N/A N/A self repository path revision N/A args kwargs N/A N/A N/A N/A self supports_repositories N/A N/A NotImplementedError N/A N/A N/A N/A N/A repository get_scmtool get_file path revision kwargs N/A get_file_exists N/A N/A self repository path revision N/A args kwargs N/A N/A N/A N/A self supports_repositories N/A N/A NotImplementedError N/A N/A N/A N/A N/A repository get_scmtool file_exists path revision kwargs N/A get_branches N/A N/A self repository N/A N/A N/A Get a list of all branches in the repositories.

        This should be implemented by subclasses, and is expected to return a
        list of Branch objects. One (and only one) of those objects should have
        the "default" field set to True.
         N/A NotImplementedError N/A get_commits N/A N/A self repository branch start N/A None None N/A N/A Get a list of commits backward in history from a given point.

        This should be implemented by subclasses, and is expected to return a
        list of Commit objects (usually 30, but this is flexible depending on
        the limitations of the APIs provided.

        This can be called multiple times in succession using the "parent"
        field of the last entry as the start parameter in order to paginate
        through the history of commits in the repository.
         N/A NotImplementedError N/A get_change N/A N/A self repository revision N/A N/A N/A Get an individual change.

        This should be implemented by subclasses, and is expected to return a
        tuple of (commit message, diff), both strings.
         N/A NotImplementedError N/A get_remote_repositories N/A N/A self owner owner_type filter_type start per_page N/A None None None None None N/A N/A Get a list of remote repositories for the owner.

        This should be implemented by subclasses, and is expected to return an
        APIPaginator providing pages of RemoteRepository objects.

        The ``start`` and ``per_page`` parameters can be used to control
        where pagination begins and how many results are returned per page,
        if the subclass supports it.

        ``owner`` is expected to default to a reasonable value (typically
        the linked account's username). The hosting service may also require
        an ``owner_type`` value that identifies what the ``owner`` means.
        This value is specific to the hosting service backend.

        Likewise, ``filter_type`` is specific to the hosting service backend.
        If supported, it may be used to filter the types of hosting services.
         N/A NotImplementedError N/A get_remote_repository N/A N/A self repository_id N/A N/A N/A Get the remote repository for the ID.

        This should be implemented by subclasses, and is expected to return
        a RemoteRepository if found, or raise ObjectDoesNotExist if not found.
         N/A NotImplementedError N/A get_repository_fields N/A N/A cls username hosting_url plan tool_name field_vars N/A N/A N/A N/A N/A cls supports_repositories N/A N/A NotImplementedError N/A fields N/A N/A cls _get_field plan repository_fields N/A new_vars N/A N/A field_vars copy N/A N/A new_vars N/A hosting_account_username username N/A N/A cls self_hosted N/A N/A N/A new_vars N/A hosting_url hosting_url N/A N/A new_vars N/A hosting_domain N/A N/A urlparse hosting_url N/A 1 N/A results N/A N/A N/A tool_name fields N/A N/A field value N/A N/A six iteritems N/A fields N/A tool_name N/A N/A N/A N/A N/A results N/A field N/A value new_vars N/A N/A N/A KeyError N/A e N/A N/A N/A N/A logging error N/A Failed to generate %s field for hosting service %s using %s and %r: Missing key %s N/A field N/A N/A six text_type N/A cls name value new_vars e exc_info 1 N/A N/A KeyError N/A N/A _ Internal error when generating %(field)s field (Missing key "%(key)s"). Please report this. N/A field key field e N/A results N/A classmethod get_repository_hook_instructions N/A N/A self request repository N/A N/A N/A Returns instructions for setting up incoming webhooks.

        Subclasses can override this (and set
        `has_repository_hook_instructions = True` on the subclass) to provide
        instructions that administrators can see when trying to configure an
        incoming webhook for the hosting service.

        This is expected to return HTML for the instructions. The function
        is responsible for escaping any content.
         N/A NotImplementedError N/A get_bug_tracker_requires_username N/A N/A cls plan N/A None N/A N/A N/A N/A cls supports_bug_trackers N/A N/A NotImplementedError N/A N/A %(hosting_account_username)s N/A N/A cls _get_field plan bug_tracker_field N/A classmethod get_bug_tracker_field N/A N/A cls plan field_vars N/A N/A N/A N/A N/A cls supports_bug_trackers N/A N/A NotImplementedError N/A bug_tracker_field N/A N/A cls _get_field plan bug_tracker_field N/A N/A bug_tracker_field N/A N/A N/A N/A N/A N/A bug_tracker_field field_vars N/A N/A N/A KeyError N/A e N/A N/A N/A N/A logging error N/A Failed to generate %s field for hosting service %s using %r: Missing key %s N/A bug_tracker_field N/A N/A six text_type N/A cls name field_vars e exc_info 1 N/A N/A KeyError N/A N/A _ Internal error when generating %(field)s field (Missing key "%(key)s"). Please report this. N/A field key bug_tracker_field e N/A classmethod _get_field N/A N/A cls plan name default N/A None N/A N/A N/A cls plans N/A N/A plan N/A N/A plan_name info N/A cls plans N/A N/A N/A N/A plan_name plan N/A name info N/A N/A N/A info N/A name N/A N/A getattr cls name default N/A classmethod N/A N/A _hosting_services N/A N/A _hostingsvcs_urlpatterns N/A N/A _populated False HostingServiceRegistry N/A EntryPointRegistry N/A N/A A registry for managing hosting services. N/A entry_point reviewboard.hosting_services N/A lookup_attrs N/A id N/A errors N/A ALREADY_REGISTERED LOAD_ENTRY_POINT NOT_REGISTERED N/A _ "%(item)s" is already a registered hosting service. N/A _ Unable to load repository hosting service %(entry_point)s: %(error)s. N/A _ "%(attr_value)s" is not a registered hosting service. __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super HostingServiceRegistry self __init__ N/A N/A self _url_patterns N/A N/A unregister N/A N/A self service N/A N/A N/A Unregister a hosting service.

        This will remove all registered URLs that the hosting service has
        defined.

        Args:
            service (type):
                The
                :py:class:`~reviewboard.hostingsvcs.service.HostingService`
                subclass.
         N/A N/A N/A N/A super HostingServiceRegistry self unregister service N/A N/A N/A service id N/A self _url_patterns N/A N/A cls_urlpatterns N/A N/A self _url_patterns N/A N/A service id N/A N/A N/A N/A hostingsvcs_urls dynamic_urls remove_patterns cls_urlpatterns N/A N/A N/A self _url_patterns N/A N/A service id N/A process_value_from_entry_point N/A N/A self entry_point N/A N/A N/A Load the class from the entry point.

        The ``id`` attribute will be set on the class from the entry point's
        name.

        Args:
            entry_point (pkg_resources.EntryPoint):
                The entry point.

        Returns:
            type:
            The :py:class:`HostingService` subclass.
         N/A cls N/A N/A entry_point load N/A N/A cls id N/A entry_point name N/A cls N/A register N/A N/A self service N/A N/A N/A Register a hosting service.

        This also adds the URL patterns defined by the hosting service. If the
        hosting service has a :py:attr:`HostingService.repository_url_patterns`
        attribute that is non-``None``, they will be automatically added.

        Args:
            service (type):
                The :py:class:`HostingService` subclass.
         N/A N/A N/A N/A super HostingServiceRegistry self register service N/A N/A service repository_url_patterns N/A N/A cls_urlpatterns N/A patterns N/A url N/A N/A ^(?P<hosting_service_id> N/A service id )/ N/A include N/A service repository_url_patterns N/A N/A N/A self _url_patterns N/A N/A service id cls_urlpatterns N/A N/A N/A N/A hostingsvcs_urls dynamic_urls add_patterns cls_urlpatterns N/A N/A N/A _hosting_service_registry N/A HostingServiceRegistry get_hosting_services N/A N/A N/A N/A N/A Return the list of hosting services.

    Returns:
        list:
        The :py:class:`~reviewboard.hostingsvcs.service.HostingService`
        subclasses.
     N/A N/A list _hosting_service_registry N/A get_hosting_service N/A N/A name N/A N/A N/A Return the hosting service with the given name.

    If the hosting service is not found, None will be returned.
     N/A N/A N/A N/A N/A _hosting_service_registry get id name N/A N/A N/A ItemLookupError N/A N/A None N/A register_hosting_service N/A N/A name cls N/A N/A N/A Register a custom hosting service class.

    A name can only be registered once. A KeyError will be thrown if attempting
    to register a second time.

    Args:
        name (unicode):
            The name of the hosting service.

        cls (type):
            The hosting service class. This should be a subclass of
            :py:class:`~reviewboard.hostingsvcs.service.HostingService`.
     N/A N/A cls id name N/A N/A N/A _hosting_service_registry register cls N/A unregister_hosting_service N/A N/A name N/A N/A N/A Unregister a previously registered hosting service.

    Args:
        name (unicode):
            The name of the hosting service.
     N/A N/A N/A N/A N/A _hosting_service_registry unregister_by_attr id name N/A N/A N/A ItemLookupError N/A e N/A N/A N/A N/A logging error N/A Failed to unregister unknown hosting service "%s" name N/A e N/A _on_initializing N/A N/A N/A kwargs N/A N/A N/A N/A _hosting_service_registry populate N/A N/A receiver initializing dispatch_uid populate_hosting_services