Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5466: Added check to enforce that all name of controllers end with "Handler" or "Page" #5878

Merged
merged 12 commits into from
Nov 28, 2018
Next Next commit
Added line breaks
  • Loading branch information
Rishav Chakraborty committed Nov 16, 2018
commit bff1fca02ecab9227cbda8e0311f422ee75bcb3b
45 changes: 29 additions & 16 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,24 +283,37 @@ def ui_access_wrapper(self, *args, **kwargs):
get_redirect_route(
r'/value_generator_handler/<generator_id>',
resources.ValueGeneratorHandler),
get_redirect_route(r'%s' % feconf.FRACTIONS_LANDING_PAGE_URL,
custom_landing_pages.FractionLandingPage),
get_redirect_route(r'%s' % feconf.LIBRARY_INDEX_URL, library.LibraryPage),
get_redirect_route(r'%s' % feconf.LIBRARY_INDEX_DATA_URL,
library.LibraryIndexHandler),
get_redirect_route(r'%s' % feconf.LIBRARY_RECENTLY_PUBLISHED_URL,
library.LibraryGroupPage),
get_redirect_route(r'%s' % feconf.LIBRARY_TOP_RATED_URL,
library.LibraryGroupPage),
get_redirect_route(r'%s' % feconf.LIBRARY_GROUP_DATA_URL,
library.LibraryGroupIndexHandler),
get_redirect_route(r'%s' % feconf.LIBRARY_SEARCH_URL, library.LibraryPage),
get_redirect_route(
r'%s' % feconf.FRACTIONS_LANDING_PAGE_URL,
custom_landing_pages.FractionLandingPageHandler),
get_redirect_route(
r'%s' % feconf.LIBRARY_INDEX_URL,
library.LibraryPageHandler),
get_redirect_route(
r'%s' % feconf.LIBRARY_INDEX_DATA_URL,
library.LibraryIndexHandler),
get_redirect_route(
r'%s' % feconf.LIBRARY_RECENTLY_PUBLISHED_URL,
library.LibraryGroupPageHandler),
get_redirect_route(
r'%s' % feconf.LIBRARY_TOP_RATED_URL,
library.LibraryGroupPageHandler),
get_redirect_route(
r'%s' % feconf.LIBRARY_GROUP_DATA_URL,
library.LibraryGroupIndexHandler),
get_redirect_route(
r'%s' % feconf.LIBRARY_SEARCH_URL,
library.LibraryPageHandler),
get_redirect_route(
r'%s' % feconf.LIBRARY_SEARCH_DATA_URL, library.SearchHandler),
get_redirect_route(r'/gallery', library.LibraryRedirectPage),
get_redirect_route(r'/contribute', library.LibraryRedirectPage),
get_redirect_route(r'/learn', library.LibraryRedirectPage),
get_redirect_route(r'/playtest', library.LibraryRedirectPage),
get_redirect_route(
r'/gallery', library.LibraryRedirectPageHandler),
get_redirect_route(
r'/contribute', library.LibraryRedirectPageHandler),
get_redirect_route(
r'/learn', library.LibraryRedirectPageHandler),
get_redirect_route(
r'/playtest', library.LibraryRedirectPageHandler),
get_redirect_route(
feconf.EXPLORATION_SUMMARIES_DATA_URL,
library.ExplorationSummariesHandler),
Expand Down