1212 get_org_name ,
1313 get_remote_url
1414)
15- from .forms import JoinCommunityForm , CommunityGoogleForm , CommunityEvent
15+ from .forms import (
16+ JoinCommunityForm ,
17+ CommunityGoogleForm ,
18+ CommunityEvent ,
19+ OrganizationMentor
20+ )
1621from data .models import Team
1722from gamification .models import Participant as GamificationParticipant
1823from meta_review .models import Participant as MetaReviewer
@@ -42,6 +47,14 @@ def initialize_org_context_details():
4247 return org_details
4348
4449
50+ def get_community_mentor_form_variables (context ):
51+ context ['organization_mentor_form' ] = OrganizationMentor ()
52+ context ['organization_mentor_form_name' ] = os .environ .get (
53+ 'MENTOR_FORM_NAME' , None
54+ )
55+ return context
56+
57+
4558def get_community_event_form_variables (context ):
4659 context ['community_event_form' ] = CommunityEvent ()
4760 context ['community_event_form_name' ] = os .environ .get (
@@ -58,12 +71,18 @@ def get_community_google_form_variables(context):
5871 return context
5972
6073
74+ def get_all_community_forms (context ):
75+ context = get_community_google_form_variables (context )
76+ context = get_community_event_form_variables (context )
77+ context = get_community_mentor_form_variables (context )
78+ return context
79+
80+
6181def get_header_and_footer (context ):
6282 context ['isTravis' ] = Travis .TRAVIS
6383 context ['travisLink' ] = Travis .TRAVIS_BUILD_WEB_URL
6484 context ['org' ] = initialize_org_context_details ()
65- context = get_community_google_form_variables (context )
66- context = get_community_event_form_variables (context )
85+ context = get_all_community_forms (context )
6786 print ('Running on Travis: {}, build link: {}' .format (context ['isTravis' ],
6887 context ['travisLink' ]
6988 ))
0 commit comments