Remove unused URL /book-shifted/
This commit is contained in:
@@ -36,10 +36,6 @@ def index(request, course_id, book_index, page=None):
|
||||
)
|
||||
|
||||
|
||||
def index_shifted(request, course_id, page):
|
||||
return index(request, course_id=course_id, page=int(page) + 24)
|
||||
|
||||
|
||||
def remap_static_url(original_url, course):
|
||||
"""Remap a URL in the ways the course requires."""
|
||||
# Ick: this should be possible without having to quote and unquote the URL...
|
||||
|
||||
@@ -227,8 +227,6 @@ if settings.COURSEWARE_ENABLED:
|
||||
'staticbook.views.index', name="book"),
|
||||
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/book/(?P<book_index>[^/]*)/(?P<page>[^/]*)$',
|
||||
'staticbook.views.index'),
|
||||
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/book-shifted/(?P<page>[^/]*)$',
|
||||
'staticbook.views.index_shifted'),
|
||||
|
||||
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/pdfbook/(?P<book_index>[^/]*)/$',
|
||||
'staticbook.views.pdf_index', name="pdf_book"),
|
||||
|
||||
Reference in New Issue
Block a user