Remove unused URL /book-shifted/

This commit is contained in:
Ned Batchelder
2013-06-28 17:04:59 -04:00
parent 6c3563cc1a
commit 25d0f4d500
2 changed files with 0 additions and 6 deletions

View File

@@ -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...

View File

@@ -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"),