Commit 25d0f4d5 by Ned Batchelder

Remove unused URL /book-shifted/

parent 6c3563cc
......@@ -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"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment