#NEWLINE# def _get_hosting_service_info( self , hosting_service , hosting_accounts ) : #NEWLINE# #INDENT# 'Return the information for a hosting service.\n\n        Arguments:\n            hosting_service (type):\n                The hosting service class, which should be a subclass of\n                :py:class:`~reviewboard.hostingsvcs.service.HostingService`.\n\n            hosting_accounts (list):\n                A list of the registered\n                `py:class:`~reviewboard.hostingsvcs.models.HostingServiceAccount`s\n\n        Returns:\n            dict:\n            Information about the hosting service.\n        ' #NEWLINE# return { #NEWLINE# #INDENT# 'scmtools' : hosting_service . supported_scmtools , #NEWLINE# 'plans' : [ ] , #NEWLINE# 'planInfo' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# 'self_hosted' : hosting_service . self_hosted , #NEWLINE# 'needs_authorization' : hosting_service . needs_authorization , #NEWLINE# 'supports_bug_trackers' : hosting_service . supports_bug_trackers , #NEWLINE# 'supports_ssh_key_association' : hosting_service . supports_ssh_key_association , #NEWLINE# 'supports_two_factor_auth' : hosting_service . supports_two_factor_auth , #NEWLINE# 'needs_two_factor_auth_code' : False , #NEWLINE# 'accounts' : [ { #NEWLINE# #INDENT# 'pk' : account . pk , #NEWLINE# 'hosting_url' : account . hosting_url , #NEWLINE# 'username' : account . username , #NEWLINE# 'is_authorized' : account . is_authorized , #NEWLINE# #UNINDENT# } for account in hosting_accounts if ( account . service_name == hosting_service . id ) ] , #NEWLINE# #UNINDENT# }