From 8a7211da05737949e047783e6741052e1f3f1c49 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Thu, 28 Feb 2013 09:40:30 -0500 Subject: [PATCH] remove unused import commands (which were used for temporary profiling). Also change get_lms_link_for_item() to preserve the previous argument ordering. Apparently all callers may not use argument name conventions for the 'preview' argument. --- cms/djangoapps/contentstore/utils.py | 2 +- common/lib/xmodule/xmodule/modulestore/mongo.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cms/djangoapps/contentstore/utils.py b/cms/djangoapps/contentstore/utils.py index 9c5bd5c553..cf0c281dd4 100644 --- a/cms/djangoapps/contentstore/utils.py +++ b/cms/djangoapps/contentstore/utils.py @@ -75,7 +75,7 @@ def get_course_for_item(location): return courses[0] -def get_lms_link_for_item(location, course_id=None, preview=False): +def get_lms_link_for_item(location, preview=False, course_id=None): if course_id is None: course_id = get_course_id(location) diff --git a/common/lib/xmodule/xmodule/modulestore/mongo.py b/common/lib/xmodule/xmodule/modulestore/mongo.py index fb050b4988..8068129559 100644 --- a/common/lib/xmodule/xmodule/modulestore/mongo.py +++ b/common/lib/xmodule/xmodule/modulestore/mongo.py @@ -2,8 +2,6 @@ import pymongo import sys import logging import copy -import time -import traceback from bson.son import SON from fs.osfs import OSFS