INCR-462: Make compatible with Python 3.x and disable: import-error (#20983)
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
Support for using the CodeMirror code editor as a wiki content editor.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django import forms
|
||||
from django.forms.utils import flatatt
|
||||
from django.template.loader import render_to_string
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
"""Middleware for course_wiki"""
|
||||
from urlparse import urlparse
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.exceptions import PermissionDenied
|
||||
from django.http import Http404
|
||||
from django.shortcuts import redirect
|
||||
from six import text_type
|
||||
from six.moves.urllib.parse import urlparse # pylint: disable=import-error
|
||||
from wiki.models import reverse
|
||||
|
||||
from courseware.access import has_access
|
||||
|
||||
@@ -3,6 +3,8 @@ These callables are used by django-wiki to check various permissions
|
||||
a user has on an article.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from course_wiki.utils import user_is_article_course_staff
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ These callables are used by django-wiki to check various permissions
|
||||
a user has on an article.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext_noop
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
Utility functions for course_wiki.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
|
||||
import courseware
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
"""
|
||||
This file contains view functions for wrapping the django-wiki.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import logging
|
||||
import re
|
||||
|
||||
|
||||
Reference in New Issue
Block a user