#NEWLINE# def _load_hosting_service( self , hosting_service_id , hosting_service , repo_type_id , repo_type_label , form_class , * args , **kwargs ) : #NEWLINE# #INDENT# 'Loads a hosting service form.\n\n        The form will be instantiated and added to the list of forms to be\n        rendered, cleaned, loaded, and saved.\n        ' #NEWLINE# plan_info = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if hosting_service . supports_repositories : #NEWLINE# #INDENT# form = form_class ( ( self . data or None ) ) #NEWLINE# self . repository_forms [ hosting_service_id ] [ repo_type_id ] = form #NEWLINE# if self . instance : #NEWLINE# #INDENT# form . load ( self . instance ) #NEWLINE# #UNINDENT# #UNINDENT# if hosting_service . supports_bug_trackers : #NEWLINE# #INDENT# form = form_class ( ( self . data or None ) , prefix = 'bug_tracker' ) #NEWLINE# self . bug_tracker_forms [ hosting_service_id ] [ repo_type_id ] = form #NEWLINE# plan_info [ 'bug_tracker_requires_username' ] = hosting_service . get_bug_tracker_requires_username ( repo_type_id ) #NEWLINE# if kwargs . instance : #NEWLINE# #INDENT# form . load ( self . instance ) #NEWLINE# #UNINDENT# #UNINDENT# hosting_info = self . hosting_service_info [ hosting_service_id ] #NEWLINE# hosting_info [ 'planInfo' ] [ repo_type_id ] = plan_info #NEWLINE# hosting_info [ 'plans' ] . append ( { #NEWLINE# #INDENT# 'type' : repo_type_id , #NEWLINE# 'label' : six . text_type ( repo_type_label ) , #NEWLINE# #UNINDENT# } )