From 01d4fbeb7c9915d7ad3c31dbdb36594d48d49ff3 Mon Sep 17 00:00:00 2001 From: Steve Strassmann Date: Fri, 10 May 2013 14:14:36 -0400 Subject: [PATCH] reorder imports --- cms/djangoapps/contentstore/views/preview.py | 27 ++++++++++---------- cms/djangoapps/contentstore/views/public.py | 5 ++-- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/cms/djangoapps/contentstore/views/preview.py b/cms/djangoapps/contentstore/views/preview.py index a3fc816730..36ca01ec86 100644 --- a/cms/djangoapps/contentstore/views/preview.py +++ b/cms/djangoapps/contentstore/views/preview.py @@ -1,24 +1,25 @@ import logging, sys import static_replace -from xmodule_modifiers import replace_static_urls +from functools import partial + +from django.http import HttpResponse, Http404, HttpResponseBadRequest, HttpResponseForbidden +from django.core.urlresolvers import reverse +from django.contrib.auth.decorators import login_required +from mitxmako.shortcuts import render_to_response + +from xmodule_modifiers import replace_static_urls, wrap_xmodule from xmodule.error_module import ErrorDescriptor from xmodule.errortracker import exc_info_to_str -from django.core.urlresolvers import reverse -from mitxmako.shortcuts import render_to_response -from django.contrib.auth.decorators import login_required -from xblock.runtime import DbModel -from xmodule.x_module import ModuleSystem +from xmodule.exceptions import NotFoundError, ProcessingError +from xmodule.modulestore import Location +from xmodule.modulestore.django import modulestore from xmodule.modulestore.mongo import MongoUsage -from xmodule_modifiers import wrap_xmodule +from xmodule.x_module import ModuleSystem +from xblock.runtime import DbModel + from session_kv_store import SessionKeyValueStore from requests import render_from_lms -from functools import partial -from xmodule.modulestore import Location from access import has_access -from xmodule.modulestore.django import modulestore -from xmodule.exceptions import NotFoundError, ProcessingError -from django.http import HttpResponse, Http404, HttpResponseBadRequest, HttpResponseForbidden - log = logging.getLogger(__name__) diff --git a/cms/djangoapps/contentstore/views/public.py b/cms/djangoapps/contentstore/views/public.py index fe26fbec7c..3ab9e4e5a0 100644 --- a/cms/djangoapps/contentstore/views/public.py +++ b/cms/djangoapps/contentstore/views/public.py @@ -1,10 +1,11 @@ -from external_auth.views import ssl_login_shortcut -from mitxmako.shortcuts import render_to_response from django_future.csrf import ensure_csrf_cookie from django.core.context_processors import csrf from django.shortcuts import redirect from django.conf import settings +from mitxmako.shortcuts import render_to_response + +from external_auth.views import ssl_login_shortcut from user import index """