Esempio n. 1
0
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'),
  webapp2.Route('/nationals/2018/groups/<event_id:.*>/<round_num:\d>/<stage:.>/<group:\d*>',
                handler=Groups2018Handler, name='groups_2018_group'),
  # 2019
  webapp2.Route('/nationals/2019',
                handler=BasicHandler('/nationals/2019/index.html',
                                     include_wca_disclaimer=True)),
  webapp2.Route('/nationals/2019/events', handler=Events2019Handler,
                name='events_2019'),
  webapp2.Route('/nationals/2019/schedule',
                handler=BasicHandler('/nationals/2019/schedule.html')),
Esempio n. 2
0
 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:.*>',
     handler=GetDocumentHandler,
     name='get_document'),
 webapp2.Route(
     '/about/logo', handler=BasicHandler('logo.html'), name='logo'),
 webapp2.Route('/about/contact',
               handler=ContactHandler(AppSettings.Get().contact_email,
                                      'contact.html', 'CubingUSA'),
               name='contact'),
 webapp2.Route('/newengland',
               handler=BasicHandler('newengland.html'),
               name='newengland'),
 webapp2.Route(
     '/app',
     handler=webapp2.RedirectHandler,
     defaults={'_uri': 'https://cubingusa.org/nationals/2019/app'}),
 webapp2.Route(
     '/results',
     handler=webapp2.RedirectHandler,
     defaults={'_uri': 'https://cubecomps.cubing.net/live.php'}),
 # Async
 webapp2.Route(
     '/async/champions_by_year/<event_id:.*>/<championship_type:.*>/<championship_region:.*>',