from src.handlers.admin.post_import_mutations import PostImportMutationsHandler from src.handlers.admin.update_championships import UpdateChampionshipsHandler from src.handlers.admin.update_states import UpdateStatesHandler from src.handlers.admin.upload_users import UploadUsersHandler from src.handlers.admin.get_wca_export import GetExportHandler from src.handlers.admin.app_settings import AppSettingsHandler from src.handlers.basic import BasicHandler from src.handlers.login import LoginHandler from src.handlers.login import LoginCallbackHandler from src.handlers.login import LogoutHandler from src.handlers.oauth import AuthenticateHandler from src.models.user import Roles app = webapp2.WSGIApplication([ webapp2.Route('/', handler=BasicHandler('admin/index.html', permitted_roles=Roles.AdminRoles())), webapp2.Route('/authenticate', handler=AuthenticateHandler), webapp2.Route('/login', handler=LoginHandler, name='login'), webapp2.Route('/login_callback', handler=LoginCallbackHandler, name='login_callback'), webapp2.Route('/logout', handler=LogoutHandler, name='logout'), webapp2.Route('/post_import_mutations', handler=PostImportMutationsHandler), webapp2.Route('/update_championships', handler=UpdateChampionshipsHandler), webapp2.Route('/update_states', handler=UpdateStatesHandler), webapp2.Route( '/upload_users', handler=UploadUsersHandler, name='upload_users'), webapp2.Route('/wca/get_export', handler=GetExportHandler), webapp2.Route('/assign_role/<user_id:.*>/<role:.*>', handler=AssignRoleHandler),
from src import config from src import handlers from src.handlers.basic import BasicHandler from src.handlers.contact import ContactHandler from src.models.user import Roles from src.handlers.nationals.eighteen.events import Events2018Handler from src.handlers.nationals.eighteen.groups import Groups2018Handler from src.handlers.nationals.eighteen.schedule import Schedule2018Handler from src.handlers.nationals.nineteen.events import Events2019Handler app = webapp2.WSGIApplication([ webapp2.Route('/nationals', webapp2.RedirectHandler, defaults={'_uri': '/nationals/2019'}), # 2018 webapp2.Route('/nationals/2018', handler=BasicHandler('/nationals/2018/index.html', include_wca_disclaimer=True)), webapp2.Route('/nationals/2018/events', handler=Events2018Handler, name='events_2018'), webapp2.Route('/nationals/2018/schedule', handler=Schedule2018Handler), webapp2.Route('/nationals/2018/travel', handler=BasicHandler('/nationals/2018/travel.html')), webapp2.Route('/nationals/2018/unofficial', handler=BasicHandler('/nationals/2018/unofficial.html')), webapp2.Route('/nationals/2018/contact', handler=ContactHandler('*****@*****.**', '/nationals/2018/contact.html', 'Nationals 2018')), webapp2.Route('/nationals/2018/groups', handler=Groups2018Handler, name='groups_2018'), webapp2.Route('/nationals/2018/groups/<person_id:\d\d\d\d\w\w\w\w\d\d>', handler=Groups2018Handler, name='groups_2018_person'),
from src.handlers.admin.get_wca_export import GetExportHandler from src.handlers.admin.copy_user_states import CopyUserStatesHandler from src.handlers.admin.post_import_mutations import PostImportMutationsHandler from src.handlers.admin.rewrite_champions import RewriteChampionsHandler from src.handlers.admin.update_states import UpdateStatesHandler from src.handlers.admin.upload_users import UploadUsersHandler from src.handlers.basic import BasicHandler from src.handlers.login import LoginHandler from src.handlers.login import LoginCallbackHandler from src.handlers.login import LogoutHandler from src.handlers.oauth import AuthenticateHandler from src.handlers.oauth import OAuthCallbackHandler from src.models.user import Roles app = webapp2.WSGIApplication([ webapp2.Route('/', handler=BasicHandler('admin/index.html', permitted_roles=Roles.AdminRoles())), webapp2.Route('/authenticate', handler=AuthenticateHandler), webapp2.Route('/oauth_callback', handler=OAuthCallbackHandler), webapp2.Route('/copy_user_states', handler=CopyUserStatesHandler), webapp2.Route('/rewrite_champions', handler=RewriteChampionsHandler), webapp2.Route('/login', handler=LoginHandler, name='login'), webapp2.Route('/login_callback', handler=LoginCallbackHandler, name='login_callback'), webapp2.Route('/logout', handler=LogoutHandler, name='logout'), webapp2.Route('/post_import_mutations', handler=PostImportMutationsHandler), webapp2.Route('/update_states', handler=UpdateStatesHandler), webapp2.Route('/upload_users', handler=UploadUsersHandler, name='upload_users'), webapp2.Route('/wca/get_export', handler=GetExportHandler), webapp2.Route('/assign_role/<user_id:.*>/<role:.*>', handler=AssignRoleHandler), webapp2.Route('/app_settings', handler=AppSettingsHandler, name='app_settings'), webapp2.Route('/archive_old_pages', handler=ArchivePagesHandler, name='archive_old_pages'), ], config=config.GetAppConfig())
from src import handlers from src.handlers.basic import BasicHandler from src.handlers.contact import ContactHandler from src.models.user import Roles from src.handlers.nationals.eighteen.events import Events2018Handler from src.handlers.nationals.eighteen.schedule import Schedule2018Handler uri_base = '/nationals/2018' template_base = 'nationals/2018' app = webapp2.WSGIApplication([ webapp2.Route('/nationals', webapp2.RedirectHandler, defaults={'_uri': '/nationals/2018'}), webapp2.Route('/nationals/2018', handler=BasicHandler('/nationals/2018/index.html', include_wca_disclaimer=True, permitted_roles=Roles.AdminRoles())), webapp2.Route( '/nationals/2018/events', handler=Events2018Handler, name='events'), webapp2.Route('/nationals/2018/schedule', handler=Schedule2018Handler), webapp2.Route('/nationals/2018/travel', handler=BasicHandler('/nationals/2018/travel.html', permitted_roles=Roles.AdminRoles())), webapp2.Route('/nationals/2018/contact', handler=ContactHandler('*****@*****.**', '/nationals/2018/contact.html', 'Nationals 2018')), ], config=config.GetAppConfig())
from src.handlers.championship_psych import ChampionshipPsychHandler from src.handlers.championship_psych import ChampionshipPsychAsyncHandler from src.handlers.edit_user import EditUserHandler from src.handlers.login import LoginHandler from src.handlers.login import LoginCallbackHandler from src.handlers.login import LogoutHandler from src.handlers.nationals.eighteen.redirect import NationalsGroupsRedirectHandler from src.handlers.oauth import AuthenticateHandler from src.handlers.oauth import OAuthCallbackHandler from src.handlers.regional import RegionalsHandler from src.models.app_settings import AppSettings from src.models.user import Roles app = webapp2.WSGIApplication( [ webapp2.Route('/', handler=BasicHandler('index.html'), name='home'), webapp2.Route('/groups', handler=NationalsGroupsRedirectHandler), webapp2.Route('/groups/<person_id:.*>', handler=NationalsGroupsRedirectHandler), webapp2.Route('/authenticate', handler=AuthenticateHandler), webapp2.Route('/oauth_callback', handler=OAuthCallbackHandler), webapp2.Route('/login', handler=LoginHandler, name='login'), webapp2.Route('/login_callback', handler=LoginCallbackHandler, name='login_callback'), webapp2.Route('/logout', handler=LogoutHandler, name='logout'), webapp2.Route('/edit', handler=EditUserHandler, name='edit_user'), webapp2.Route('/edit/<user_id:.*>', handler=EditUserHandler, name='edit_user_by_id'), webapp2.Route('/regional',
webapp2.Route('/scheduling/<competition_id:.*>/events', handler=EventDisplayHandler, name='event_display'), webapp2.Route( '/scheduling/<competition_id:.*>/<schedule_version:.*>/schedule', handler=ScheduleDisplayHandler, name='schedule_display_with_version'), webapp2.Route('/scheduling/<competition_id:.*>/schedule', handler=ScheduleDisplayHandler, name='schedule_display'), webapp2.Route( '/scheduling/<competition_id:.*>/<schedule_version:.*>/groups', handler=GroupsDisplayHandler, name='groups_display_with_version'), webapp2.Route('/scheduling/<competition_id:.*>/groups', handler=GroupsDisplayHandler, name='groups_display'), webapp2.Route('/scheduling/<competition_id:.*>/<schedule_version:.*>/wcif', handler=CompetitionWcifHandler, name='competition_wcif_with_version'), webapp2.Route('/scheduling/<competition_id:.*>/wcif', handler=CompetitionWcifHandler, name='competition_wcif'), webapp2.Route('/scheduling/wcif_spec', handler=BasicHandler('scheduling/wcif_spec.html'), name='wcif_spec'), webapp2.Route('/scheduling/admin/update_all_competitions', handler=UpdateAllCompetitionsHandler), ], config=config.GetAppConfig())
from src.handlers.documents import GetDocumentHandler from src.handlers.admin.documents import DeleteDocumentHandler from src.handlers.admin.documents import PermanentlyDeleteDocumentsHandler from src.handlers.admin.documents import RestoreDocumentHandler from src.handlers.admin.documents import UploadDocumentHandler from src.handlers.admin.edit_users import EditUsersHandler from src.handlers.edit_user import EditUserHandler from src.handlers.login import LoginHandler from src.handlers.login import LoginCallbackHandler from src.handlers.login import LogoutHandler from src.handlers.oauth import AuthenticateHandler from src.models.app_settings import AppSettings from src.models.user import Roles app = webapp2.WSGIApplication([ webapp2.Route('/', handler=BasicHandler('index.html'), name='home'), webapp2.Route('/authenticate', handler=AuthenticateHandler), webapp2.Route('/login', handler=LoginHandler, name='login'), webapp2.Route('/login_callback', handler=LoginCallbackHandler, name='login_callback'), webapp2.Route('/logout', handler=LogoutHandler, name='logout'), webapp2.Route('/edit', handler=EditUserHandler, name='edit_user'), webapp2.Route('/edit/<user_id:.*>', handler=EditUserHandler, name='edit_user_by_id'), webapp2.Route('/regional', handler=BasicHandler('regional.html'), name='competitions_regional'), webapp2.Route('/supported', handler=BasicHandler('supported.html'), name='supported'), webapp2.Route('/state_rankings', handler=BasicHandler('state_rankings.html', include_wca_disclaimer=True), name='state_rankings'), webapp2.Route('/about', handler=BasicHandler('about.html'), name='about'), webapp2.Route('/about/who', handler=BasicHandler('about_who.html'), name='about_who'), webapp2.Route('/about/donations', handler=BasicHandler('donations.html'), name='about_donations'), webapp2.Route('/about/documents', handler=DocumentsHandler, name='documents'), webapp2.Route('/about/get_document/<document_id:.*>/<document_name:.*>',