INCR-455: Updates on Python 3.x (#21057)
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
Admin interface for LTI Provider app.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import LtiConsumer
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
"""
|
||||
Configuration for the lti_provider Django application.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ changes. To do that,
|
||||
1. Go to the edx-platform dir
|
||||
2. ./manage.py lms schemamigration lti_provider --auto "description" --settings=devstack
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import logging
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
@@ -3,6 +3,8 @@ Helper functions for managing interactions with the LTI outcomes service defined
|
||||
in LTI v1.1.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import logging
|
||||
import uuid
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
Subclass of oauthlib's RequestValidator that checks an OAuth signature.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import six
|
||||
from oauthlib.oauth1 import RequestValidator, SignatureOnlyEndpoint
|
||||
|
||||
|
||||
@@ -97,7 +100,7 @@ class SignatureValidator(RequestValidator):
|
||||
:return: True if the signature matches, False if it does not.
|
||||
"""
|
||||
|
||||
method = unicode(request.method)
|
||||
method = six.text_type(request.method)
|
||||
url = request.build_absolute_uri()
|
||||
body = request.body
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
Asynchronous tasks for the LTI provider app.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import logging
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
LTI Provider API endpoint urls.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls import url
|
||||
|
||||
|
||||
Reference in New Issue
Block a user