Fixing & adding Bokchoys for edx notes pagination.

TNL-3910
This commit is contained in:
muzaffaryousaf
2015-12-30 16:28:08 +05:00
parent bfa2ea5bd8
commit 71ec1b94f6
3 changed files with 343 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ Stub implementation of an HTTP service.
"""
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
import urllib
import urlparse
import threading
import json
@@ -217,6 +218,8 @@ class StubHttpRequestHandler(BaseHTTPRequestHandler, object):
`format_str` is a string with old-style Python format escaping;
`args` is an array of values to fill into the string.
"""
if not args:
format_str = urllib.unquote(format_str)
return u"{0} - - [{1}] {2}\n".format(
self.client_address[0],
self.log_date_time_string(),